【发布时间】:2012-03-17 15:06:06
【问题描述】:
File1 Contents:
line1-file1 "1"
line2-file1 "2"
line3-file1 "3"
line4-file1 "4"
File2 Contents:
line1-file2 "25"
line2-file2 "24"
Pointer-file2 "23"
line4-file2 "22"
line5-file2 "21"
perl/shell脚本执行后,
File 2 content should become
line1-file2 "25"
line2-file2 "24"
Pointer-file2 "23"
line1-file1 "1"
line2-file1 "2"
line3-file1 "3"
line4-file1 "4"
line4-file2 "22"
line5-file2 "21"
即在包含“指针”的行之后将文件 1 的内容粘贴到文件 2 中。
谢谢
【问题讨论】:
-
也问Unix.SE
-
我投票结束这个问题,因为它是一个交叉帖子。
标签: regex perl shell insert paste