Skip to content

Instantly share code, notes, and snippets.

@Inkimar
Created September 14, 2016 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Inkimar/ad5dd185b8d8605a5c85d331d53ee4b7 to your computer and use it in GitHub Desktop.
Save Inkimar/ad5dd185b8d8605a5c85d331d53ee4b7 to your computer and use it in GitHub Desktop.
groovy test 1
#!/usr/bin/groovy
def name='World'; println "change file names"
String oldFilename = "old.txt"
String newFilename = "new.txt"
new File(oldFilename).renameTo(new File(newFilename))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment