Exclusive Grep
November 7th, 2006 liewsheng
When you have ‘grep’ some keyword:
grep “keyword” filename
tons of lines and dozen of words you don’t want may show on the screen. What can you for this? Of cause is filter out the unwanted word ;p it is easy to ‘exclusive’ the unwanted keyword:
grep “keyword” filename | grep -v “non-keyword”
the ‘-v’ here will display [...]
Posted in Text Manipulation, grep | Hits: 7305 | 7 Comments »
Live Chat!








