FGREP(1) General Commands Manual FGREP(1)

fgrepsearch a file for a fixed-string pattern (LEGACY)

fgrep [-c | -l][-invx] -e pattern_list [file ...]

fgrep [-c | -l][-invx] -f pattern_list [file ...]

fgrep [-c | -l][-invx] pattern_list [file ...]

The name fgrep is an obsolescent version equivalent to grep(1) -F .

A command invoking the fgrep utility with the -e option specified is equivalent to the command: grep -F [ -c| -l][-invx] -e pattern_list [file...]

A command invoking the fgrep utility with the -f option specified is equivalent to the command: grep -F [ -c| -l][-invx] -f pattern_list [file...]

A command invoking the fgrep utility with neither the -e nor the -f option operand specified is equivalent to the command: grep -F [ -c| -l][-invx] pattern_list [file...]

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Refer to grep(1) .

Unlike grep(1) -F , multiple -e or -f options produce undefined results. Adjacent newline characters in the pattern operand or -e pattern_list option-argument also produce undefined results.

Applications should migrate to the -F command.

Refer to grep(1) .

Refer to grep(1) .

grep(1) .

February 1997 posix.fail