Cisco Support Tools 1.0 User Guide How to Use the FGrep Utility 224
-v: print the lines that DON'T match the pattern.
-c: print a count of the number of matching lines in each file.
-l: print the name of each file that has a match.
Note: Options m, v, c and l are exclusive. Only one of these may be selected.
-x: the pattern must match the entire line to succeed.
-i: ignore the case of each character while matching.
-n: print the line number that the match occurred on.
-f: print the full path name of the file when printing filenames.
-s: do not report errors encountered while opening or reading files.
-e: use the next argument as the pattern to search for. This is useful if the pattern
begins with a - or / character.
-?: Display program description.
Note: If the environment variable FGrep exists, its value is used to establish default
options.
Note: You can override an option that was specified in the environment variable by
following the option with a minus '-' sign. For example, to turn off the -i option,
specify -i-.
See Also
For related information, see:
About Common Utilities
How to Use the Grep Utility