Javascript Menu by Deluxe-Menu.com
Sorting the content of a file

Sorting the content of a file

The sort command is a simple database tool. It allows you to specify the field to be sorted on and the type of sort to be carried out on it.

   sort filename

Lines are sorted into the following order: lines starting with numbers come first, followed by lines starting with upper-case letters, which are followed by lines starting with lower-case letters and finally symbols such as % and !.


[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:30 am and is maintained by webmaster@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2009 Rutgers, The State University of New Jersey. All rights reserved.