Skip to content

Instantly share code, notes, and snippets.

@codetojoy
Created October 17, 2013 16:06
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 codetojoy/7027625 to your computer and use it in GitHub Desktop.
Save codetojoy/7027625 to your computer and use it in GitHub Desktop.
for Avdi Grimm's "Sorting Lines..." post
new File(args[1]).withWriter { def writer ->
new File(args[0]).readLines().sort().each { writer.println(it) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment