Nov 21, 2007

删除文本文件中包含特定字符串所在行[script tips]

grep
-v, --invert-match select non-matching lines
grep -v "string" tee tmp.file
mv -f tmp.file original.file
or
vi
:g/string/d

No comments:

Post a Comment