home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d145 / csh.lha / Csh / sets / sets.1 < prev    next >
Text File  |  1988-05-26  |  2KB  |  131 lines

  1.  
  2.  
  3.  
  4. SETS(L)          Local UNIX Programmer's Manual           SETS(L)
  5.  
  6.  
  7.  
  8. NAME
  9.      sets - performs set operations on its arguments
  10.  
  11. SYNOPSIS
  12.      sets [-p] e1 e2 ... en [-u] [-d] [-i] e1 e2 ... en
  13.  
  14. DESCRIPTION
  15.      _S_e_t_s prints on the standard output stream the result of a
  16.      single set operation on two sets of elements provided on the
  17.      command line.  The sets are separated by the operator flag.
  18.      The program collects the elements for each set, removes
  19.      duplicated elements, and then performs the set operation.
  20.  
  21.      _S_e_t_s performs three set operations:
  22.  
  23.      e1 e2 ... en -u[nion] e1 e2 ... en
  24.       prints the union of the two sets;
  25.  
  26.      e1 e2 ... en -d[ifference] e1 e2 ... en
  27.       prints the set difference _e_1 _e_2 ... _e_n - _e_1 _e_2 ... _e_n;
  28.  
  29.      e1 e2 ... en -i[ntersection] e1 e2 ... en
  30.       prints the intersection of the two sets.
  31.  
  32.      As _s_e_t_s is intended to be used on filenames it ignores lead-
  33.      ing pathnames in the set operations.  The -p flag makes
  34.      pathnames significant in membership tests.
  35.  
  36. USAGE
  37.      _S_e_t_s is most useful for restricting the files to be pro-
  38.      cessed by some other command.  For example, to _g_r_e_p all
  39.      files in a directory except the object files you might use:
  40.  
  41.      grep string `sets * -d *.o`
  42.  
  43.      Since by default leading pathnames are ignored, _s_e_t_s can be
  44.      used across directories - for example, to list files with
  45.      the same names in two directories:
  46.  
  47.      sets ../* -i *
  48.  
  49.      Note that full pathnames are included in the output.  As a
  50.      result the relative position of the sets on the command line
  51.      is significant.  The above command will print all matching
  52.      names with a leading "../".  If the position of the sets is
  53.      reversed only the filenames will be printed.
  54.  
  55. FILES
  56.      /usr/local/sets
  57.      /usr/src/local/sets.c
  58.  
  59.  
  60.  
  61. Printed 3/2/88        December 3, 1987            1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. SETS(L)          Local UNIX Programmer's Manual           SETS(L)
  69.  
  70.  
  71.  
  72. AUTHOR
  73.      Chris Tweed
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. Printed 3/2/88        December 3, 1987            2
  126.  
  127.  
  128.  
  129.