Linux中如何删除包含指定字符的行,用SHELL脚本实现

Linux中如何删除包含指定字符的行,比如example.txt中有如下内容
this is a cat
that is a dog
it is a tiger
现在我要删除cat那一行 请问如何写脚本程序

第1个回答  2013-06-25
sed -i '/cat/d' example.txt
第2个回答  2008-04-10
正在学习linux,无法帮助你
相似回答