grep not functioning correctly

Posted by ak0 on Super User See other posts from Super User or by ak0
Published on 2010-08-17T15:22:05Z Indexed on 2011/01/03 20:56 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

I've been happily using grep for many years without any issues, but since today it quit working. During the past hour I tried this and that, but enough is enough, I'm posting the bastard here:

On the simplest command like

grep 'aaa' file.txt

I'm getting this: grep: aaa: No such file or directory

So grep does not interpret the first argument as the pattern as it should, but treats it as a path.

Please help me, I'm going crazy '-(

© Super User or respective owner

Related posts about osx

Related posts about command-line