[root@nfs tmp]# cat write.log
this is a for write!
adjakldad
adkjalda
[root@nfs tmp]# cat log
1
2
3
4
5
6
7
8
9
10
[root@nfs tmp]# sed ‘3r /tmp/write.log‘ log
1
2
3
this is a for write!
adjakldad
adkjalda
4
5
6
7
8
9
10
本文出自 “guoxianqi” 博客,请务必保留此出处http://guoxianqi.blog.51cto.com/8764300/1559706
原文:http://guoxianqi.blog.51cto.com/8764300/1559706