Skip to content

Instantly share code, notes, and snippets.

@MichaelXavier
Created October 16, 2013 21:15
Show Gist options
  • Select an option

  • Save MichaelXavier/7015022 to your computer and use it in GitHub Desktop.

Select an option

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