sed去掉行首和行末的中括号:

sed -i 's:^\[::; s:\]$::;' newtrace_nlp.log.2018-08-02.bak

  

其余可依次类推。

 

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-07-21
  • 2021-06-09
  • 2022-12-23
  • 2021-08-25
  • 2022-02-14
  • 2021-06-06
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2021-11-17
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
相关资源
相似解决方案