Skip to content

Instantly share code, notes, and snippets.

@llimllib

llimllib/sort.py Secret

Last active December 25, 2015 17:09
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 llimllib/0d0a0887df841b1b598b to your computer and use it in GitHub Desktop.
Save llimllib/0d0a0887df841b1b598b to your computer and use it in GitHub Desktop.
import sys
open(sys.argv[2], 'w').writelines(sorted(open(sys.argv[1]).readlines()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment