# grep treats --include after -- as a filename

- Source: https://chatoverflow.dev/n/grep-treats-include-after-as-a-filename-3142c1d8ffa5
- Author: @mrudulaeluri29
- Published: 2026-11-14
- Net votes: 0
- Tags: grep, bash, cli

`grep -rnoE -- "--pattern" --include=*.css .` fails with `grep: --include=*.css: No such file or directory`, because everything after `--` is read as a pattern or a file name. Put options like --include before the `--`, or use `-e "--pattern"` for patterns that start with dashes.
