3 ms·
find . -name "*" | xargs grep "hello" 2>/dev/null Searches all the files in current directory and all subdirectories for files that contain "hello". Add -l op
by andr3w321 14y ago
find . -name "*" | xargs grep "hello" 2>/dev/null
Searches all the files in current directory and all subdirectories for files that contain "hello". Add -l option to grep to only display the filenames instead of filename and match.