sed删除行

删除文件中含有$word字符串的某些行(在文件中修改)

sed -i '/$word/d' file

原文地址:https://www.cnblogs.com/ManMonth/p/3469793.html