zoukankan      html  css  js  c++  java
  • shell sed 引用文件执行多个命令

    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 % 

  • 相关阅读:
    探索需求14
    周总结5
    周总结4
    探索需求13
    Java——迭代器
    Java——Collection集合
    Java——包装类
    Java——Arrays
    Java——BigInteger、BigDecimal
    Java——System
  • 原文地址:https://www.cnblogs.com/sea-stream/p/14044960.html
Copyright © 2011-2022 走看看