Find all files with the extension .js and execute the command sed to replace all occurrences of the word "world" with the word "moon" in each file.
find . -name "*.js" -exec sed -i 's/world/moon/g' {} \;