Posted: March 16, 2022 | by Site Host
Use this to find all files containing specific text on Linux.
$ grep -lrnw '/var/www/html' -e 'cool text'
Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.
How to Read a File in Python
How to Search Whole MySQL Database for a Particular String