Find all files in the current working directory with a name ending in ".txt", execute a grep search for lines containing both "foo" and "bar" and output the filenames, sorted in reverse order.
find $(pwd) -iname '*.txt' -exec grep -l '.*foo.*bar.*' {} \; | sort -r