Find all files with the extension .txt in the current directory and its subdirectories, and replace all occurrences of the letter Z or z with the letters Xx in each file.
find . -iname '*.txt' -exec sed -ri 's/[Zz]/Xx/g' {} \;