grep—Search for regular expression

The grep (get regular expression and print) command is an subset of the Unix grep command and even smaller subset of the superb GNU grep. It searches one or more files for a pattern, can descend into subdirectories when searching, and can write its output (matching lines along with optional file name, line number, and column number) in one of a user-defined set of customizable formats.



Subsections