Kudithipudi.Org

February 29, 2008

HOW TO : Use grep to exclude a pattern

Filed under: HOWTO,Linux,Technology — Vinay @ 10:15 am

If you want to search a file and show all the lines that don’t match a particular pattern, you an use the following option in grep

grep -v "PATTERN" fileName

1 Comment »

  1. [...] . Older how to articles on my site related to this topic are here and [...]

    Pingback by Kudithipudi.Org » Blog Archive » HOW TO : More examples of grep — May 6, 2009 @ 8:14 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress