sort — Sort, Merge, or Sequence Check Text Files

Synopsis

/usr/bin/sort [-bcdfimMnru][-k keydef][-o output][-t char] 

							
								
  [-T directory][-y [k mem]][-z recs z][+pos1 [-pos2]][file...] 
/usr/xpg4/bin/sort [-bcdfimMnru][-k keydef][-o output][-t char] 

							
								
  [-T directory][-y [k mem]][-z recs z][+pos1 [-pos2]][file...] 

Description

Use the sort command to rearrange the lines in a file in alphabetic (the default) or numeric order and write the result to the standard output.

By default, the sort command uses the beginning of the line as the key field to sort ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.