Created
August 11, 2011 13:48
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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