Please contact or Mt Xia for assistance with all your shell programming needs.
6.7 sort: Sort a File
The sort utility sorts line of all the named files together and writes the result to standard output. The standard input is used if - is used as a file name or no input files are specified. Comparisons are based one or more sort keys extracted from each line of input. There is only one key by default, that's the entire line, and ordering is lexicographic by bytes in machine collating sequence.
Command format: sort [-cmu][-ooutput][-ykmem][-zrecsz] [-dfiMnr][-btx][+pos][-pos2][files] See on-line manual for options etc. |
UNIX Tool Description comm Compares two sorted file and reports differences cut Select columns or fields from lines in a field (System V only) diff Report the differences between two files join Join lines in two files that contain a common field pg Show files (or standard input) on a terminal a screen at a time od Print the numeric equivalent of a file's content tail List end of files (or standard input) on standard output tee Sends standard input to two different places tr Transforms all occurrences of one character into another wc Count the characters, words, and lines in a file |
Command Format: ar key [posname] afile [name]... Unlike command options, the command key is required. The key, usually a - sign, is formed with one of the following letters drqtpmx. Arguments to the key are made from one or more of the following set, vuaibcis. See Appendix I for a complete list of command keys. posname is an archive member name used as a reference for positioning other files in the archive. afile is the name of the archive. name[s] are the constituent files in the archive. |