grep Unix Utility
(Redirected from grep)
Jump to navigation
Jump to search
A grep Unix Utility is a Unix utility for the search through text task to identify lines that match a text-based regular expression.
- Example(s):
grep -ve 'patternA' -ve 'patternB' file.txt
grep --with-filename --only-matching 'pattern' file.txt
- Counter-Example(s):
- See: File Processing, Search System.
References
2011
- http://en.wikipedia.org/wiki/Grep
- grep is a command-line text-search utility originally written for Unix. The name comes from the ed command g/re/p (global / regular expression / print).[1][2] The
grep
command searches files or standard input globally for lines matching a given regular expression, and prints the lines to the program's standard output.
- grep is a command-line text-search utility originally written for Unix. The name comes from the ed command g/re/p (global / regular expression / print).[1][2] The
- ↑ Hauben et al. 1997, Ch. 9
- ↑ Raymond, Eric. "grep". Jargon File. http://www.catb.org/~esr/jargon/html/G/grep.html. Retrieved 2006-06-29.