sed 删除含有某个字符串的行 (在文件txt)

#删除a.txt中含有“aaa”的行

sed -i “/aaa/d” a.txt

 

posted @ 2019-07-29 17:28  lililili——  阅读(1755)  评论(0)    收藏  举报