comment out one line in the file with sed

sed -i "/test2/s/^/#/" test.log

 

 

https://jaminzhang.github.io/linux/sed-command-usage-summary/

posted on 2023-02-09 10:21  cdekelon  阅读(13)  评论(0编辑  收藏  举报

导航