home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / groups / !Groups / PostMerge < prev    next >
Text File  |  1995-06-29  |  869b  |  31 lines

  1. | PostMerge file for !Groups
  2. | © David Croft, 1995
  3.  
  4. | This file is executed by !Groups after merging new groups into the main
  5. | list. It should call any suitable sorting program. Parameters to this file:
  6.  
  7. | %0  Output file name
  8. | %1  Input file name
  9.  
  10. | Note that all output is redirected to a scrap file. If *any* output is
  11. | produced, Groups assumes an error occurred. This is fine for the supplied
  12. | sort program, but may cause problems with others.
  13.  
  14. | 'sort', written by Andy Armstrong
  15. |
  16. | Syntax: Sort -i -cn -u -b -h source [dest]
  17. |
  18. |   -i    case doesn't matter
  19. |   -cn   start at column n
  20. |   -u    output unique lines only
  21. |   -b    omit blank lines
  22. |   -r    reverse sorting
  23. |   -h    help message
  24.  
  25. Run <Groups$Dir>.Sort -i -u -b %1 %0
  26.  
  27. | If you don't want to have the list resorted, comment the above line and
  28. | uncomment the next line.
  29.  
  30. | Copy %1 %0 ~C~DF~V
  31.