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
Nov 21, 2007
删除文本文件中包含特定字符串所在行[script tips]
Subscribe to:
Post Comments (Atom)
logical design,verification,fpga,script,synthesis,sta,dft,eda,everything about Digital IC design...
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
Powered By Blogger
This blog is licensed under a Creative Commons License
No comments:
Post a Comment