"find" specific contents [linux]
I would like to go through all the files in the current directory (or sub-directories) and echoes me back the name of files only if they contain certain words. More detail: find -type f -name "*hello *" will give me all file names that have "hello" in their names. But instead of that, I want to search through the files and if that file's content contains "hello" then prints out the name of the file. Is there a way to approach this?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.