Back to labs/answer key page

Some additional unix commands.
wc file
 count the number of words, characters, and lines in file.
sort file
 output the lines of file in ascii order.
sort -r
 present output in reverse order.
sort -n
 present output in numerical order.
sort -nr
 present output in reverse numerical order.
uniq -c
 remove repeated lines, indicates how many repetitions.
tr c1 c2 < file
 output the lines in file with all instances of c1> changed to c2

Back to labs/answer key page

-----

Emily M. Bender
Last modified: Fri Dec 8 11:56:54 2000