How to search for text within multiple files under multiple folders/directories in Linux

find . -type f -exec grep -l “text-to-search” {} +

Xin

One thought on “How to search for text within multiple files under multiple folders/directories in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *