shell脚本求助
原始文档如下:================start==========================
Problem replicate app.table1
Mapping problem with insert record
col1 = 1
col2 = aaa
col3 = bbb
col4 = ccc
Problem replicate app.table1
Mapping problem with updata record
col1 = 2
col2 = ddd
col3 = eee
col4 = fff
Problem replicate app.table1
Mapping problem with insert record
col1 = 3
col2 = hhh
col3 = eeade
col4 = fdafff
Problem replicate app.table1
Mapping problem with insert record
col1 = 4
col2 = dfafaf
col3 = dafaf
col4 = 你好
Problem replicate app.table1
Mapping problem with delete record
col1 = 5
col2 = afaf
col3 = adf
col4 = 2faf
===========end==============================
希望得到以下结果:
cat talbe1
insert 1 aaa bbb ccc
updata 2 ddd eee fff
insert 3 hhh eeade fdafff
insert 4 dfafaf dafaf 你好
delete 5 afaf adf 2faf
各位请帮忙看看这个脚本如何编写,谢谢!
页:
[1]