Skip to content

Instantly share code, notes, and snippets.

@Joxebus
Created April 22, 2020 01:00
Show Gist options
  • Save Joxebus/d6cfda7db5e1aa73db24a60c5b699bdc to your computer and use it in GitHub Desktop.
Save Joxebus/d6cfda7db5e1aa73db24a60c5b699bdc to your computer and use it in GitHub Desktop.
This is a bash script written in Groovy to copy files
#!/usr/bin/env groovy
String source = args[0]
String target = args[1]
println "Copy file [$source] into [$target]"
File sourceFile = new File(source)
new File(target).bytes = sourceFile.bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment