Find all files ending with ".conf" in the current directory and its subdirectories, and replace all occurrences of "oldtext" with "newtext" in those files.
find ~ -name "*.conf" | xargs sed -i 's/oldtext/newtext/g'