Disable regex interpretation.
Section: Regex with grep
Match literal text only
bash
bash
grep -F 'a+b*c' notes.txtExplanation
Equivalent to traditional `fgrep` and useful when searching for symbols literally.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Regex with grep
Use extended regex
Enable `+`, `?`, and alternation without heavy escaping.
Find non-blank lines
Show lines containing at least one non-space character.