Stanford University School of Earth Science
 
Home
News
New Users
Policies
Network File Server
Web Server
Get Help
Net Connections
Your Macintosh
Your Windows PC
Your Unix/Linux System
Other School Resources
Using Unix
   Overview
   Documentation
   Accounts
   Using the Shell
   Using X-Windows
   File Manipulation
   Net Commands
   Editing Text
   Formatting Text
   Printing
   Filters & Utilities
   Programming

sort - sort lines in a file

Last revision July 20, 2004

Additional topics:

 

sort reads an input file(s) (standard input if no file name is given) and copies it to the output, after first merging the lines from the input files as needed and sorting these lines as specified by options. Its general capabilities are:

Can sort lines into ASCII collating order or numeric value order.

Can specify which portions of the line, called fields, are to be the sort keys, and what the hierarchy of sorting should be.

If more than one input file is given, they will be sorted as one large concatenated file. Can also merge previously sorted files.

 


Comments?

Stanford University    |