Chinaunix's Archiver
论坛
›
Informix
› sed命令问题求教!~~
q82314018
发表于 2008-03-06 11:35
sed命令问题求教!~~
现在需要在4gl程序中插入一行,用sed命令如何实现?
111
下面插入一行实现
111
222
ivhb
发表于 2008-03-06 14:05
去shell版问更加合适
liaosnet
发表于 2008-03-06 14:18
sed -e '/^111$/a\\
222' infile > outfile
页:
[1]
查看完整版本:
sed命令问题求教!~~