Find all files with the extension ".txt" and print the directory name of each file, then remove duplicate entries and print the result.
find . -name "*.txt" -exec dirname {} \; | awk '{print $1}' | sort -u