Understanding ‘fgrep’ Command in File System

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

Rate this post:


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...