sed -i '$a # This is a test' regular_express.txt

由於 $ 代表的是最后一行,而 a 的动作是新增,因此该文件最后新增『# This is a test』!

相关文章:

  • 2022-02-07
  • 2021-08-12
  • 2021-11-06
  • 2021-12-10
  • 2021-06-26
  • 2021-08-08
猜你喜欢
  • 2021-12-30
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2021-11-12
  • 2021-04-27
  • 2022-12-23
相关资源
相似解决方案