touch newfile.txt

插入字符串

echo "aaa" >>/newfile.txt

替换字符串

sed -i "s/aaa/ccc/g" `grep aaa -rl /newfile.txt`

 

相关文章:

  • 2022-02-07
  • 2021-06-03
  • 2021-12-04
  • 2021-12-31
  • 2021-12-31
  • 2021-08-09
  • 2022-01-02
  • 2021-07-20
猜你喜欢
  • 2022-02-07
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
相关资源
相似解决方案