Created
October 17, 2013 16:06
-
-
Save codetojoy/7027625 to your computer and use it in GitHub Desktop.
for Avdi Grimm's "Sorting Lines..." post
This file contains 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
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