Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: