Using Grep To Find a Snippet of Text


Some developers know how to use grep well, other’s don’t. I’m one of the developers that only knows the basics of grep. For example: if I want to search a folder of 20+ files for a specific string it can be very tedious. However, grep makes this part of life simpler by allowing you search for a string in all files in a folder. eg. grep -lir “search string” /home/myfolder/

Categorized as news