June 2003
Beginner to intermediate
944 pages
43h 1m
English
fgrep
fgrep [options] pattern [files]Search one or more files for lines that match a literal text string pattern. Exit status is 0 if any lines match, 1 if not, and 2 for errors.
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
Read now
Unlock full access