码迷,mamicode.com
首页 > 系统相关 > 详细

shell sed 多行执行多个命令

时间:2020-12-01 12:32:52      阅读:24      评论:0      收藏:0      [点我收藏+]

标签:des   gre   code   shel   elephant   sed -e   col   mac   top   

code

macname@localhost Desktop % cat content 
fox jumps over the lazy dog. 
fox jumps over the lazy dog. 
fox jumps over the lazy dog. 
fox jumps over the lazy dog.
macname@localhost Desktop % 
macname@localhost Desktop % 
macname@localhost Desktop % sed -e quote> s/jumps/green/
quote> s/fox/elephant/
quote> s/dog/cat/ content
elephant green over the lazy cat. 
elephant green over the lazy cat. 
elephant green over the lazy cat. 
elephant green over the lazy cat.
macname@localhost Desktop % 
macname@localhost Desktop % cat content 
fox jumps over the lazy dog. 
fox jumps over the lazy dog. 
fox jumps over the lazy dog. 
fox jumps over the lazy dog.
macname@localhost Desktop % 

 

 

 

 

 

 

 

 

 

 

shell sed 多行执行多个命令

标签:des   gre   code   shel   elephant   sed -e   col   mac   top   

原文地址:https://www.cnblogs.com/sea-stream/p/14044944.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!