Grep File by Contents
October 2nd, 2010
I found out that I have been missing out on a neat grep option: l
grep -l "piece of text" *
This lists all files in the directory containing “piece of text”. Mighty useful when e.g. locating all calls to a specific function.
Leave a Reply