> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Use grep to exclude a pattern
- URL: https://kudithipudi.org/howto-use-grep-to-exclude-a-pattern/
- Published: 2008-02-29T14:15:05.000Z
- Updated: 2008-02-29T14:15:05.000Z
- Description: 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...
- Author: admin
- Tags: HOWTO, Linux, Technology, Uncategorized, #wp, #wp-post, #Import 2026-08-23 02:32

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](http://en.wikipedia.org/wiki/Grep?ref=kudithipudi.org)

`grep -v "PATTERN" fileName`