Find all files with the extension .txt, sort them in reverse order, and then search for the string '#define' in each file and list the files that contain it.
find . -name '*.txt' | sort -r | xargs grep -l '#define'