Being one of the most useful commands in Linux Hosting, fgrep is widely used to search for exact strings in text files. The command accommodates a number of variants and options as well.
- -i : for ignore case.
- -v : for displaying the lines that don’t match.
- -n : for displaying the line number with the line where the match was found.
Command: $ fgrep [options] textfiles

