When I used Linux at work I used the command:
find . -name "*.c" | xargs grep <expression-to-find> | more
Now, that I changed jobs (and OSes), the same command doesn't work anymore. FYI, I am using cygwin.
What is another command that searches similar to the above? What it the above command does is find all files in the current directory and all subdirectories for all files with a .c extension. It then greps each file for the <expression-to-find> and returns the results.
This type of searching came in really handy and I could really use a similar command.
Any takers?
find . -name "*.c" | xargs grep <expression-to-find> | more
Now, that I changed jobs (and OSes), the same command doesn't work anymore. FYI, I am using cygwin.
What is another command that searches similar to the above? What it the above command does is find all files in the current directory and all subdirectories for all files with a .c extension. It then greps each file for the <expression-to-find> and returns the results.
This type of searching came in really handy and I could really use a similar command.
Any takers?
