nargs (1) --- print number of command file arguments 03/20/80 _U_s_a_g_e nargs [ ] _D_e_s_c_r_i_p_t_i_o_n 'Nargs' prints the number of arguments supplied on a command line at some higher level of command file/function call nesting. It is most often used in a function call within a command file to determine the number of arguments supplied to that same command file. As with the 'arg' and 'args' commands, may optionally be specified to indicate the number of higher nesting levels to skip before counting. In keeping with its most frequent mode of usage, the default value is one, so that the nesting level corresponding to the function call is ignored. _E_x_a_m_p_l_e_s nargs 0 echo [nargs] _S_e_e _A_l_s_o arg (1), args (1), getarg (2) nargs (1) - 1 - nargs (1)