Find all files with the extension .txt in the current directory and its subdirectories, and replace all strings of two or more uppercase letters with the string FOO.
find ./ -name "*.txt" | xargs sed -i 's/[A-Z]\{2,\}/FOO/g'