How do I pass the resulting files from one grep pass to another so that I only grep through the subs

Posted by NSA on Stack Overflow See other posts from Stack Overflow or by NSA
Published on 2010-05-18T00:07:19Z Indexed on 2010/05/18 0:10 UTC
Read the original article Hit count: 123

Filed under:
|
|

Hello All,

I want to be able to take the files I found with my first grep statement, something like this for example: grep -r Makefile * And then pass the files found in that pass of grep to a second grep with something like this for example: grep {files} '-lfoo'

How do I do this? I know there must be a way.

Thank you.

© Stack Overflow or respective owner

Related posts about grep

Related posts about linux