*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> apply (1)              
Title
Content
Arch
Section
 

apply(1)

Contents


NAME    [Toc]    [Back]

       apply - Applies a command to a set of arguments

SYNOPSIS    [Toc]    [Back]

       apply [-acharacter] [-number] command argument...

       The apply command runs the specified command on each argument
 in turn.

OPTIONS    [Toc]    [Back]

       Identifies the character used instead of  the  %  (percent
       sign)  to designate argument substitution strings.  Specifies
 the number of arguments to be passed to command.

DESCRIPTION    [Toc]    [Back]

       Normally, arguments are chosen individually; the  optional
       number  specifies  the number of arguments to be passed to
       command. If number is 0 (zero),  command  is  run  without
       arguments once for each argument.

       If you include character sequences of the form %n (where n
       is a digit from 1 to 9) in command, they are  replaced  by
       the  nth unused argument following command when command is
       executed.  If any such sequences occur, number is ignored,
       and the number of arguments passed to command is the maximum
 value of n in command.

       You can specify a character other than % (percent sign) to
       designate argument substitution character strings with the
       -a option;  for  example,  -a@  would  indicate  that  the
       sequences  @1  and @2 were to be replaced by the first and
       second unused arguments following command.

NOTES    [Toc]    [Back]

       Shell  metacharacters  in  command  may  have  undesirable
       effects;  it  is best to enclose complicated commands in '
       ' (single quotes).

       There is no way to pass a % (percent sign) followed  immediately
 by any number if % is the argument expansion character.

EXAMPLES    [Toc]    [Back]

       The following command is similar to ls: apply echo  *  The
       following  command compares the file a1 to the file b1, a2
       to b2, and so on: apply -2 cmp a1 b1 a2 b2 ...   The  following
  command  runs  who 5 times: apply -0 who 1 2 3 4 5
       The following command  links  all  files  in  the  current
       directory   to   the  directory  /usr/joe:  apply  'ln  %1
       /usr/joe' *

SEE ALSO    [Toc]    [Back]

      
      
       Commands:  sh(1), xargs(1)



                                                         apply(1)
[ Back ]
 Similar pages
Name OS Title
ipxfargc IRIX Returns the number of command-line arguments excluding the command name
apply OpenBSD apply a command to a set of arguments
apply FreeBSD apply a command to a set of arguments
apply IRIX apply a command to a set of arguments
command Tru64 Treats command arguments as simple commands
getsubopt Tru64 Parse suboption arguments from a command line
getopt Tru64 Parses command line flags and arguments
patch Tru64 Applies changes to files
CSROT IRIX CSROT applies the complex Givens rotation (X) ( C S)(X) (Y) = (-S C)(Y) N times where for I = 0,...,N-1 X = CX
DQRSL IRIX DQRSL applies the output of DQRDC to compute coordinate transformations, projections, and least squares soluti
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service