Linux find file text command (find | grep)

finds if all files in the current directory contain “XXXXX” text:

grep -r "xxxxx"

finds if a file in the current directory contains the text “XXXXX” :

find ./ -type f -name "filename.filetype" | xargs grep "xxxxx"


Read More: