4
I have cygwin installed and when I search for the source code with this command nothing show up, even that I have that string in a file
$ echo foo > bar
$ find . -name '*' | grep foo
Nothing shows up. This command works fine on GNU+Linux.
$ grep foo bar
1Could also pipe find to xargs, as in
$ find . | xargs grep foo
– Xen2050 – 2015-12-09T10:10:29.733@Xen2050 you can add that as an answer, I forget xargs. – jcubic – 2015-12-09T11:31:32.970
@jcubic You don't need to use
find
at all. See my answer. – DavidPostill – 2015-12-09T12:28:27.370Just out of curiosity, what does
$ which find
return on Cygwin? – SΛLVΘ – 2015-12-13T21:19:04.903@SalvoF
/usr/bin/find
– jcubic – 2015-12-14T09:11:10.393