# Search for a text string in all files and subdirectories.
find -type f -print0 | xargs -0 grep -il "$1"
How does this differ from:
grep -Iilr 'search phrase' .
Your command is much more concise. Thanks for the tip!
Your email address will not be published. Required fields are marked *