Search code examples
grepcygwin

why the cygWin grep gives error?


I am trying to recursively search for the below string in all my C# files. Why am I gettig this error? Took me a lontime to install CygWin and I have been using Unix forever, but this is not acting like Unix's grep. Noteworthy that I am using Cygwin for my WIndows7. Thanks

grep -R 'new IIntf' *.*
grep: *.*: No such file or directory

grep -R 'new IIntf' *.cs
grep: *.cs: No such file or directory

Solution

  • There may be no files matching *.* in the current directory. Perhaps you mean grep -R 'new IIntf' .