

            argsto (1) --- print command file arguments              04/28/80


            _U_s_a_g_e

                 argsto <delim> [<num> [<start> [<level_offset>]]]


            _D_e_s_c_r_i_p_t_i_o_n

                 'Argsto'  is  used  from  within  a shell program to print a
                 group of  arguments  specified  on  the  command  line  that
                 invoked  that  shell  program.  'Argsto' prints the group of
                 arguments delimited by arguments consisting  of  the  string
                 <delim>.   <Num>  is an integer that controls which group of
                 arguments  is  printed.   If  <number>  is  0  or   omitted,
                 arguments up to the first occurrence of <delim> are printed;
                 if <number> is 1, arguments between the first occurrence and
                 second  occurrence  of  <delim>  are  printed,  and  so  on.
                 <Start> is an integer indicating the argument at  which  the
                 scan  is to begin; if <start> is omitted (or is 1), the scan
                 begins at the first argument.

                 <Level_offset> is used to specify the number  of  levels  of
                 nested  input  files  and/or  function  calls that are to be
                 skipped before fetching the specified  argument  string.   A
                 value of zero means fetch the argument from the first higher
                 nesting level; one means skip one level to the second higher
                 level,  etc.  The strings thus obtained are printed on stan-
                 dard output 1, followed by a newlines.

                 Since 'argsto' is typically used in a function call within a
                 shell program, the default value of <level offset>  is  one,
                 so  that  the  level  corresponding  to the function call is
                 skipped and the shell program arguments are accessed.


            _E_x_a_m_p_l_e_s

                 rp [argsto / 2]
                 fc [argsto / 1]


            _S_e_e _A_l_s_o

                 args (1), nargs  (1),  getarg  (2),  _U_s_e_r_'_s  _G_u_i_d_e  _f_o_r  _t_h_e
                 _S_o_f_t_w_a_r_e _T_o_o_l_s _S_u_b_s_y_s_t_e_m _C_o_m_m_a_n_d _I_n_t_e_r_p_r_e_t_e_r














            argsto (1)                    - 1 -                    argsto (1)


