Find all files with the extension ".txt" in the current directory and up to three levels of subdirectories, and compress them using the highest compression level (9) with gzip.
find ~ -maxdepth 3 -name '*.txt' | xargs gzip -9