Finding a string inside multiple files on Linux

Snipplr has a good article on how to find all of the files on a Linux system that contain a specific string.

find /the/path/to/start/at |xargs grep 'the string' -sl

The search will include subfolders.

Leave a Comment

 
re-abolish slavery