Skip to content

Instantly share code, notes, and snippets.

@ran488
Created August 11, 2011 13:48
Show Gist options
  • Save ran488/1139700 to your computer and use it in GitHub Desktop.
Save ran488/1139700 to your computer and use it in GitHub Desktop.
Simple Groovy script to get URL resource (as text) and blast it to stdout
if(args){
def url = args[0]
def text = url.toURL().text
println text
}
else {
println "USAGE: gget url"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment