home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / sort / summary.hlp < prev   
Encoding:
Text File  |  1989-01-01  |  1.4 KB  |  29 lines

  1.                             SORT
  2.  
  3. SORT is an external command that rearranges the lines of text in a file
  4. or keyboard input into alphanumeric order. 
  5.  
  6.     SORT[/R][/+n] [<[d1:][pathname1]filename1[.ext1]] [>filename2[.ext2]]
  7.              \____________________________/    \_____________/
  8.                 \input              \output
  9.  
  10. /R allows you to sort in reverse alphanumeric order. The default is to
  11.     sort in ascending order. See the ORDERING topic for details.
  12.  
  13. /+n is the column number to start sorting on. The default is column 1.
  14. If you wanted to start the sort on column 20, you would specify /+20.
  15.  
  16. <[d1:][pathname1]filename1[.ext1]] is the name of the input file you 
  17.     want to sort.  Notice the <. With SORT, you must use <(redirection) 
  18.     to read input from a file. Otherwise, SORT will expect its input to 
  19.     be entered from the keyboard.
  20.  
  21. >filename2[.ext2] is the output file (or device) where you want to write 
  22.     the sorted data.  Notice the >.  You must use >(redirection) to get
  23.     SORT to write to a file. Otherwise, it will display its output on
  24.     the screen.
  25.  
  26. Sort won't work on files over 64,512 characters long. It will sort special
  27. (non-alphanumeric) characters like Ctrl-Z or Tab, but probably not in the
  28. order desired. See the NEW_TERMS REDIRECTION topic for more information.
  29.