Python_2  1.0
Functions
sort_file Namespace Reference

Sort the lines of a file. More...

Functions

def sort_file ()
 Sort the lines in the file named on standard input, outputting the sorted lines on stdout. More...
 

Detailed Description

Sort the lines of a file.

See also
http://docs.python.org/2/library/fileinput.html

Function Documentation

◆ sort_file()

def sort_file.sort_file ( )

Sort the lines in the file named on standard input, outputting the sorted lines on stdout.

Example call (from command line) sort_file.py unsorted.txt > sorted.txt