Command to run another command against a list of files
Hi,
Can anyone prompt my memory on how to do this...
In the bash shell I have a recursive grep command which returns a list of matching files, e.g.
grep -rl mypattern .
I want to then grep over this list of files again to see which ones match another pattern. I believe I need to pipe the grep into a command which will run another arbitrary command (in this case my second grep) against the list of files that results from the first command (in this case my first grep), but I can't remember what it is....
Thanks,
P.
|