Skip to content

Instantly share code, notes, and snippets.

@vicly
Last active February 19, 2020 04:35
Show Gist options
  • Save vicly/daa1cdd8586db774b9fcb290c42a29e9 to your computer and use it in GitHub Desktop.
Save vicly/daa1cdd8586db774b9fcb290c42a29e9 to your computer and use it in GitHub Desktop.
[Bash script note] #Shell

rename *.groovy to *.java

find . -name "*.groovy" -exec bash -c 'mv "$1" "${1%.groovy}".java' - '{}' \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment