Find all files with the extension ".yml" in the current directory and its subdirectories, and replace the string "INVALID_KEYWORD" with "VALID_KEYWORD" in each of those files.
find ~ -type f -name "*.yml" -exec sed -i '/INVALID_KEYWORD/c\VALID_KEYWORD' {} \;