I've looked at the above and for me at least it won't recurse if I start from a root directory. This is a on a Windows 7.1 using CMD.EXE
On a network share I'm trying to extract all lines with the word PAY from series of files called TRADING.EOD in a series of folders DATA151101, DATA151102, DATA151103, etc which are created in the root folder which has been mapped to S:
grep -r --include="TRADING.EOD" "PAY" .
gives me
grep: .: Invalid argument
alternatively from my local hard drive I get
grep: unable to record current working directory: Bad file descriptor (local hard drive
Ideas on how I might get this work.