HOW TO : Use grep to exclude a pattern

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

One Response to “HOW TO : Use grep to exclude a pattern”

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

Leave a Reply