Grep in a limited set of files
find . -name "filename.sh" -print0 | xargs -0 grep "searchtext" {} -rn && echo {}
There is probably an easier way but it works.
Written by Daniel Wehner
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#