Expand description
§Search file(s) for specific text.
Syntax
grep options "Search String" [filename]Options
-c Suppress normal output; instead print a count of matching lines for each input file.
With the -v, –invert-match option (see below), count non-matching lines.
-n Prefix each line of output with the line number within its input file.
-v Selected lines are those not matching any of the specified patterns. Invert matching.