grep only returns help text
- by Pete Mancini
Well, I am perplexed. I am working with an Ubuntu server and I type in
grep 'bash' *.sh
BUT
fgrep 'bash' *.sh
works like a champ.
which grep
and
which fgrep
both point to their respective executables in /bin. I am perplexed as to what I am doing wrong.
EXAMPLE output:
$ grep -F 'grounding' repl.clj
Usage: grep [OPTION]... PATTERN [FILE]...
Search for PATTERN in each FILE or standard input.
PATTERN is, by default, a basic regular expression (BRE).
Example: grep -i 'hello world' menu.h main.c
$ fgrep 'grounding' repl.clj
(p/concepts-for-grounding-term imp1 "PERSON" "summary")
See? grep is failing but fgrep is working fine. That is why I am perplexed.