So basically I have three files, two with permission 744 and one with 601 and I want to list the names of the files that have permission 744 and in addition, it also have to have string "def" anywhere in the lines of the file.
All I got is how to print out if they have permission 744:
find * -perm 744
How do I get it so it can check for string "def"?
Any help is appreciated.