home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 16 / FREEDOS.ZIP / FD_A4PRE.ZIP / SOURCE / SORT.ZIP / SORT.1 < prev    next >
Text File  |  1995-05-23  |  2KB  |  60 lines

  1.     SORT(1)                     FREEDOS                     SORT(1)
  2.  
  3.  
  4.      NAME
  5.           sort - ASCII sort files
  6.  
  7.      SYNOPSIS
  8.           sort [ sort_options ] [file]
  9.  
  10.      DESCRIPTION
  11.           Sort is used to sort the input file. Lines of input are
  12.           taken from the file named on the sort command or if no file
  13.           is given, input is taken from standard input.
  14.  
  15.      OPTIONS
  16.           The following command line options are supported.  The
  17.           options are not case sensitive, so /r is equivalent to /R.
  18.  
  19.           /r          Sort in reverse order.
  20.  
  21.           /h          Display a brief help message.
  22.  
  23.           The notation /+num causes the sort key to begin in column
  24.           num. The first column is 1.
  25.  
  26.      EXAMPLES
  27.           Sort the contents of file1 using the entire line as the sort
  28.           key.
  29.  
  30.                Example% sort file1
  31.  
  32.           or
  33.  
  34.                Example% sort <file1
  35.  
  36.           Sort file1 in reverse order (Z-A) based on the key starting
  37.           in column 21.
  38.  
  39.                Example% sort /R /+21 <file1
  40.  
  41.           Sort c:\tmp\foobar.dat using the key in column 5 and put the
  42.           output on a file called data.out residing on the B: floppy
  43.           drive.
  44.  
  45.                Example% sort /+5 c:\tmp\foobar.dat >b:data.out
  46.  
  47.      BUGS
  48.           This version of sort only uses conventional ram and  does
  49.           not do an out-of-memory sort, so it is limited to what can
  50.           fit in available memory.  The maximum record length is 1000
  51.           characters and the maximum number of records that can be
  52.           sorted is 10,000.  This does not mean that you will be able
  53.           to sort 10,000 records of 1000 characters each, since you
  54.           would run out of memory before you read all of the data in.
  55.  
  56.  
  57.      COPYRIGHT
  58.           Copyright 1995 Jim Lynch
  59.           K4GVO@america.net
  60.