fgrep — Search a File for a Fixed-Character String
Synopsis
/usr/bin/fgrep [-bchilnsvx][-e pattern-list] [-f pattern-file][pattern][file...] /usr/xpg4/bin/fgrep [-bchilnsvx][-e pattern-list] [-f pattern-file][pattern][file...]
Description
The fgrep (fast grep) command searches files for a character string and prints all lines that contain that string. fgrep is different from grep(1) and egrep(1) because it searches for a string, instead of searching for a pattern that matches an expression. fgrep uses a fast and compact algorithm.
fgrep interprets the characters $, *, [, ^, |, (, ), and \ literally; that is, fgrep does not recognize full regular expressions as does egrep. Because these characters have special meaning to the shell, it is ...
Get Solaris™ 7 Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.