The following command finds all occurrences of 'some string' by recursively searching through the current directory and all sub-directories
grep -r -n 'some string' .
This command recursively searches through current directory and all sub-directories and returns all files of the form *.axvw
find . -name '*.axvw'
I want to put these two commands together so I get all occurances of 'some string' by recursively searching through the current directory but only looking at files that end in 'axvw'.
When I tried running the following command nothing was returned:
find . -name '*js' | grep -n 'some string'
What am I doing wrong?