藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年6月26日 11:18


請教如何在兩行之間添加若干行?

請教如何在兩行之間添加若干行?形式如下。

原文
..........
..........
this is test
hello,hello.
.........
........

修改後
............
............
this is test
add content
add content
add .........
add ...........
.........
hello,hello.
.........
........

請教如何在兩行之間添加若干行?

try:[code]
sed '/^this/r file.txt' file[/code]



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com