My Tech Notes
Search This Blog
grep to exclude lines with specific strings
grep with -v (invert) option will exclude the match lines in the output:
cat country.txt | grep -v "United States"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment