Find all files with a ".txt" extension in the current directory and its subdirectories, and replace all three-letter words with "foo" using the sed command.
find ~ -iname '*.txt' | xargs sed -i 's/\b[a-zA-Z]\{3\}\b/foo/g'