home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat1 / xargs.1 < prev    next >
Text File  |  1994-12-22  |  6KB  |  133 lines

  1.  
  2.  
  3.  
  4. XARGS(1L)                                               XARGS(1L)
  5.  
  6.  
  7. NNAAMMEE
  8.        xargs  -  build  and  execute  command lines from standard
  9.        input
  10.  
  11. SSYYNNOOPPSSIISS
  12.        xxaarrggss [-0prtx]  [-e[eof-str]]  [-i[replace-str]]  [-l[max-
  13.        lines]]   [-n  max-args]  [-s  max-chars]  [-P  max-procs]
  14.        [--null]    [--eof[=eof-str]]    [--replace[=replace-str]]
  15.        [--max-lines[=max-lines]]      [--interactive]     [--max-
  16.        chars=max-chars]  [--verbose]  [--exit]  [--max-procs=max-
  17.        procs]  [--max-args=max-args]  [--no-run-if-empty] [--ver-
  18.        sion] [--help] [command [initial-arguments]]
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.        This manual page  documents  the  GNU  version  of  xxaarrggss.
  22.        xxaarrggss  reads  arguments from the standard input, delimited
  23.        by blanks (which can be protected with  double  or  single
  24.        quotes  or a backslash) or newlines, and executes the _c_o_m_-
  25.        _m_a_n_d (default is /bin/echo) one or  more  times  with  any
  26.        _i_n_i_t_i_a_l_-_a_r_g_u_m_e_n_t_s followed by arguments read from standard
  27.        input.  Blank lines on the standard input are ignored.
  28.  
  29.        xxaarrggss exits with the following status:
  30.        0 if it succeeds
  31.        123 if any invocation of the command exited with status 1-125
  32.        124 if the command exited with status 255
  33.        125 if the command is killed by a signal
  34.        126 if the command cannot be run
  35.        127 if the command is not found
  36.        1 if some other error occurred.
  37.  
  38.    OOPPTTIIOONNSS
  39.        _-_-_n_u_l_l_, _-_0
  40.               Input filenames are terminated by a null  character
  41.               instead  of by whitespace, and the quotes and back-
  42.               slash are not special  (every  character  is  taken
  43.               literally).  Disables the end of file string, which
  44.               is treated like any other  argument.   Useful  when
  45.               arguments  might  contain white space, quote marks,
  46.               or backslashes.  The GNU find -print0  option  pro-
  47.               duces input suitable for this mode.
  48.  
  49.        _-_-_e_o_f_[_=_e_o_f_-_s_t_r_]_, _-_e_[_e_o_f_-_s_t_r_]
  50.               Set  the end of file string to _e_o_f_-_s_t_r.  If the end
  51.               of file string occurs as a line of input, the  rest
  52.               of  the  input  is ignored.  If _e_o_f_-_s_t_r is omitted,
  53.               there is no end of file string.  If this option  is
  54.               not  given, the end of file string defaults to "_".
  55.  
  56.        _-_-_h_e_l_p Print a summary of the options to xxaarrggss and exit.
  57.  
  58.        _-_-_r_e_p_l_a_c_e_[_=_r_e_p_l_a_c_e_-_s_t_r_]_, _-_i_[_r_e_p_l_a_c_e_-_s_t_r_]
  59.               Replace occurences of _r_e_p_l_a_c_e_-_s_t_r  in  the  initial
  60.               arguments  with  names  read  from  standard input.
  61.  
  62.  
  63.  
  64.                                                                 1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XARGS(1L)                                               XARGS(1L)
  71.  
  72.  
  73.               Also, unquoted blanks do not  terminate  arguments.
  74.               If  _r_e_p_l_a_c_e_-_s_t_r  is  omitted,  it  defaults to "{}"
  75.               (like for `find -exec').  Implies _-_x and _-_l _1.
  76.  
  77.        _-_-_m_a_x_-_l_i_n_e_s_[_=_m_a_x_-_l_i_n_e_s_]_, _-_l_[_m_a_x_-_l_i_n_e_s_]
  78.               Use at most _m_a_x_-_l_i_n_e_s nonblank input lines per com-
  79.               mand  line;  _m_a_x_-_l_i_n_e_s  defaults  to  1 if omitted.
  80.               Trailing blanks cause an input line to be logically
  81.               continued on the next input line.  Implies _-_x.
  82.  
  83.        _-_-_m_a_x_-_a_r_g_s_=_m_a_x_-_a_r_g_s_, _-_n _m_a_x_-_a_r_g_s
  84.               Use  at  most  _m_a_x_-_a_r_g_s arguments per command line.
  85.               Fewer than _m_a_x_-_a_r_g_s arguments will be used  if  the
  86.               size (see the -s option) is exceeded, unless the -x
  87.               option is given, in which case xxaarrggss will exit.
  88.  
  89.        _-_-_i_n_t_e_r_a_c_t_i_v_e_, _-_p
  90.               Prompt the user about whether to run  each  command
  91.               line  and  read a line from the terminal.  Only run
  92.               the command line if the response starts with `y' or
  93.               `Y'.  Implies _-_t.
  94.  
  95.        _-_-_n_o_-_r_u_n_-_i_f_-_e_m_p_t_y_, _-_r
  96.               If  the  standard  input  does not contain any non-
  97.               blanks, do not run the command.  Normally, the com-
  98.               mand is run once even if there is no input.
  99.  
  100.        _-_-_m_a_x_-_c_h_a_r_s_=_m_a_x_-_c_h_a_r_s_, _-_s _m_a_x_-_c_h_a_r_s
  101.               Use  at most _m_a_x_-_c_h_a_r_s characters per command line,
  102.               including the command and initial arguments and the
  103.               terminating  nulls  at  the  ends  of  the argument
  104.               strings.  The default is as large as  possible,  up
  105.               to 20k characters.
  106.  
  107.        _-_-_v_e_r_b_o_s_e_, _-_t
  108.               Print the command line on the standard error output
  109.               before executing it.
  110.  
  111.        _-_-_v_e_r_s_i_o_n
  112.               Print the version number of xxaarrggss and exit.
  113.  
  114.        _-_-_e_x_i_t_, _-_x
  115.               Exit if the size (see the _-_s option) is exceeded.
  116.  
  117.        _-_-_m_a_x_-_p_r_o_c_s_=_m_a_x_-_p_r_o_c_s_, _-_P _m_a_x_-_p_r_o_c_s
  118.               Run up  to  _m_a_x_-_p_r_o_c_s  processes  at  a  time;  the
  119.               default is 1.  If _m_a_x_-_p_r_o_c_s is 0, xxaarrggss will run as
  120.               many processes as possible at a time.  Use  the  _-_n
  121.               option with _-_P; otherwise chances are that only one
  122.               exec will be done.
  123.  
  124. SSEEEE AALLSSOO
  125.        ffiinndd(1L), llooccaattee(1L),  llooccaatteeddbb(5L),  uuppddaatteeddbb(1)  FFiinnddiinngg
  126.        FFiilleess (on-line in Info, or printed)
  127.  
  128.  
  129.  
  130.                                                                 2
  131.  
  132.  
  133.