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 % cat script1.sed 
s/jumps/green/ 
s/fox/elephant/ 
s/dog/cat/
macname@localhost Desktop % 
macname@localhost Desktop % sed -f script1.sed 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 % 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 % 

 

 

 

 

 

 

 

 

 

相关文章:

  • 2021-05-30
  • 2022-12-23
  • 2021-08-16
  • 2021-08-12
  • 2021-10-26
  • 2023-04-11
  • 2022-12-23
猜你喜欢
  • 2021-12-28
  • 2021-09-03
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-07-20
  • 2021-12-05
相关资源
相似解决方案