home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / TOP / USR / MAN / wns.man < prev    next >
Text File  |  2009-11-06  |  2KB  |  145 lines

  1.  
  2.  
  3.  
  4.      WNS(1)                   OS9/68000 V2.1                    WNS(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           wns - windowing search
  10.  
  11.      SYNOPSIS
  12.           wwnnss [-a nnn] [-b nnn] [-l nnn] [-w nnn] pattern [file ... ]
  13.  
  14.      DESCRIPTION
  15.           _w_n_s searches through a file or list of files for occurances
  16.           of a particular pattern, and prints a window of lines around
  17.           each match point.
  18.  
  19.           Options which may be given are as follows:
  20.  
  21.           --aa nnnnnn
  22.                (After) specifies that nnn lines following the matching
  23.                line will be printed.  default is 0.
  24.  
  25.           --bb nnnnnn
  26.                (Before) specifies that nnn lines preceding the
  27.                matching line will be printed.  default is 0.
  28.  
  29.           --dd   Enables debugging information.  Not a very interesting
  30.                option.
  31.  
  32.           --ff   Suppress printing of the filename on each output line.
  33.  
  34.           --ll nnnnnn
  35.                Sets the maximum line length to nnn.  Lines longer than
  36.                this will be truncated to this length before attempting
  37.                to match them to the pattern as well as when printing
  38.                them.  Default is 100.
  39.  
  40.           --nn   Suppress printing of the line number on each output
  41.                line.
  42.  
  43.           --ww nnnnnn
  44.                Sets the window size to nnn.  This is the same as -a
  45.                nnn -b nnn.
  46.  
  47.           _w_n_s outputs lines in the following format:
  48.  
  49.           filename @nnnnn: text
  50.  
  51.           where _f_i_l_e_n_a_m_e is the name of the file containing the
  52.           matching text and may be suppressed with the -f option,
  53.           _l_n_n_n_n is the line number of the displayed line and may be
  54.           suppressed with the -n option, and _t_e_x_t is the line from the
  55.           file.  Additionally, if the total window size is greater
  56.           than 1 (that is, more than zero lines before or after), then
  57.           non-adjacent text areas are separated by a short dashed
  58.           line.
  59.  
  60.      FILES
  61.           /usr/local/bin/wns /usr/local/src/wns/*
  62.  
  63.      CREDITS TO
  64.           M. Mallett  (mem@zinn.MV.COM)
  65.  
  66.  
  67.  
  68.  
  69.      Page 1                                           (printed 8/8/88)
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.      WNS(1)                   OS9/68000 V2.1                    WNS(1)
  77.  
  78.  
  79.  
  80.      BUGS
  81.           You tell me..
  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.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.      Page 2                                           (printed 8/8/88)
  142.  
  143.  
  144.  
  145.