[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
本文共 264 字,大约阅读时间需要 1 分钟。
[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
转载于:https://blog.51cto.com/guoxianqi/1559706