cat向文件中写入内容

  1. 写入:
    cat  >  test.txt  <<hh
    hello world
    hh
  2. 追加:
    cat  >>  test.txt  <<hh
    hello world
    hh

猜你喜欢

转载自blog.51cto.com/12173069/2120946