Skip to content

Instantly share code, notes, and snippets.

@MichaelXavier
Created October 16, 2013 21:15
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 MichaelXavier/7015022 to your computer and use it in GitHub Desktop.
Save MichaelXavier/7015022 to your computer and use it in GitHub Desktop.
import Data.List (sort)
import System.Environment (getArgs)
main = do (inFile:outFile:_) <- getArgs
writeFile outFile . unlines . sort . lines =<< readFile inFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment