Created
August 30, 2008 14:36
-
-
Save tommorris/8113 to your computer and use it in GitHub Desktop.
A one-liner to clean up some messy text files
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
puts File.open("/Users/tommorris/tmp/latin.txt").readlines.collect {|l| l.strip }.uniq.sort * "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment