Find all files (not including .txt files) in the current directory and its subdirectories, and search for the word "log" in each file, displaying the line number of each occurrence.
find ~ -maxdepth 2 -not -iname '*.txt' | xargs grep -n 'log'