September 2009
Beginner
942 pages
85h 34m
English
fgrep
fgrep [options]string[files]
Search one or more files for lines that match the specified text string. Exit status is 0 if any lines match, 1 if not, and 2 for errors. fgrep is faster than normal grep searches, but less flexible: it can only find fixed text, not regular expressions.
See grep for the list of available options. Also see egrep.
Print lines in file that don’t contain any spaces:
fgrep -v ' 'file
Print lines in file that contain the words in the file spell_list:
fgrep -f spell_listfile