A quick bash tip: find files containing specific text

21 Aug · by Tim Kamanin · 1 min read

This command works on both Linux and Mac:

grep -Rl --include \*.py 'search_vector' ./

In my case I'm looking for 'search_vector' text in my python code files. As a result, I'll get a list of files that contain the text.

Want to get more 🔥 tips like this one?

Subscribe to get notified about new dev tutorials