Results 1 to 2 of 2
I hope it can recursively look for aaa in all *.f90 files in all the subsequent directories, but it complains
grep: *.f90: No such file or directory
Any idea why ...
- 11-20-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 13
help! grep -r -i "aaa" *.f90 does not do what I want
I hope it can recursively look for aaa in all *.f90 files in all the subsequent directories, but it complains
grep: *.f90: No such file or directory
Any idea why this happens? Thanks,
- 11-20-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
Do this instead:
Code:find . -type f -iname '*.f90' -exec grep --with-filename -i "aaa" {} \;Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote