首页 > 其他 > 详细

sed

时间:2019-03-09 22:05:19      阅读:196      评论:0      收藏:0      [点我收藏+]
  • sed -e 4a\testfour text  

#在test文件第四行的下一行插入testfour

[oracle@ctp ~]$ sed -e 4a\testfour test
one
two
three
four
testfour
five
six

  • sed -e 4i\testfour test

#在test文件第四行的上一行插入testfour

[oracle@ctp ~]$ sed -e 4i\testfour test
one
two
three
testfour
four
five
six

 

sed

原文:https://www.cnblogs.com/joeshang/p/10503223.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!