I am entering a command I have done often with Linux, Unix perfectly fine but with Apple Mac OS X 10.8 (and probably before) I get a grep: unknown --devices option
when I attempt to run the following command:
find . -type f -name '*.sql' 2>/dev/null | xargs grep -i 'texttolookfor'
I checked the results of the find
command and they all appear to be just standard .sql
files. And I should add that the problem occurs with other file searches not just .sql
files. In searching the Apple site and Google I cannot seem to find any indication of what is going on here.
Does anyone have a suggestion?