Find all files with the extension .js in the current directory and its subdirectories, up to a maximum depth of 2, and replace all instances of "console.log" with "log" in those files.
find . -maxdepth 2 -type f -name '*.js' | xargs sed -i -e 's/console.log/log/g'