I need to find all instances of \'filename.ext\' on a linux system and see which ones contain the text \'lookingfor\'.
Is there a set of linux command line operation
Try:
find / -type f -name filename.ext -exec grep -H -n 'lookingfor' {} \;
find searches recursively starting from the root / for files named filename.ext and for every found occurrence it runs grep on the file name searching for lookingfor and if found prints the line number (-n) and the file name (-H).