Popular recipes by Phil Robare http://code.activestate.com/recipes/users/2608288/2005-09-28T15:34:55-07:00ActiveState Code RecipesSort a file (Python)
2005-09-28T15:34:55-07:00Phil Robarehttp://code.activestate.com/recipes/users/2608288/http://code.activestate.com/recipes/440612-sort-a-file/
<p style="color: grey">
Python
recipe 440612
by <a href="/recipes/users/2608288/">Phil Robare</a>
(<a href="/recipes/tags/files/">files</a>).
</p>
<p>A simple (4 lines) recipe that will sort a file named on the command line and write the sorted lines to standard output.</p>