Groovy web console

subscribe to the feed Subscribe
to this
site

One-liner to copy a file in Groovy

Published 1 decade ago by Antoine Roux with tags file copy one-liner
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
new File("/tmp/otherFile") << new File("/tmp/someFile").text