Find all files with the extension ".txt" in the home directory and its subdirectories, and display the directory path for each file, with each directory path only displayed once.
find ~/ -iname "*.txt" | sed -e 's/[^\/]*\//& /g' | sort -u