Thursday, July 31, 2014

Find & grep file name then grep file

find ~ -name '*alias*' -exec grep wget {} \;

Probably not as efficient yet a bit easier on my brain is the command substitution way: 

grep wget $(find ~ | grep alias)

No comments:

Post a Comment