utility-option

grep -F -e

GNU grep fixed-string selection; -e marks the pattern and -- ends options. Literal matching does not validate the path.

Formal Syntax & Structure

bash syntaxbash
grep -F -e "$needle" -- "$file"

Return Value

exit status

GNU grep fixed-string selection; -e marks the pattern and -- ends options. Literal matching does not validate the path.

Working Example

Example Snippetbash
printf '%s\n' 'a.b' 'axb' '-n' > ./-reportneedle='a.b'grep -F -e "$needle" -- -reportneedle='-n'grep -F -e "$needle" -- -report
Bash Reference