version 1.20, 2003/06/10 09:12:09 |
version 1.21, 2005/05/15 16:22:12 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm apply |
.Nm apply |
.Op Fl Ar # |
.Op Fl Ar # |
.Op Fl a Ar magic |
|
.Op Fl d |
.Op Fl d |
.Ar command argument |
.Op Fl a Ar magic |
.Op Ar ... |
.Ar command argument ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm |
.Nm |
runs the named |
runs the named |
|
|
where |
where |
.Sq d |
.Sq d |
is a digit from 1 to 9, are replaced by the |
is a digit from 1 to 9, are replaced by the |
.Li d Ns \'th |
.Li d Ns 'th |
following unused |
following unused |
.Ar argument . |
.Ar argument . |
In this case, the largest digit number of arguments are discarded for |
In this case, the largest digit number of arguments are discarded for |
|
|
default shell |
default shell |
.El |
.El |
.Sh EXAMPLES |
.Sh EXAMPLES |
.Li "$ apply echo a*" |
Operate similar to |
|
.Xr ls 1 : |
.Pp |
.Pp |
Similar to |
.Dl "$ apply echo a*" |
.Xr ls 1 . |
|
.Pp |
.Pp |
.Li "$ apply \-2 cmp a1 b1 a2 b2 a3 b3" |
Compare the |
.Pp |
.Pa a* |
Compares the |
|
.Dq a |
|
files to the |
files to the |
.Dq b |
.Pa b* |
files. |
files: |
.Pp |
.Pp |
.Li "$ apply \-0 who 1 2 3 4 5" |
.Dl "$ apply -2 cmp a1 b1 a2 b2 a3 b3" |
.Pp |
.Pp |
Runs |
Run |
.Xr who 1 |
.Xr who 1 |
5 times. |
five times: |
.Pp |
.Pp |
.Li "$ apply \'ln %1 /usr/joe\'" * |
.Dl "$ apply -0 who 1 2 3 4 5" |
.Pp |
.Pp |
Links all files in the current directory to the directory |
Link all files in the current directory to the directory |
.Pa /usr/joe . |
.Pa /home/joe : |
|
.Pp |
|
.Dl "$ apply 'ln %1 /home/joe'" * |
.Sh SEE ALSO |
.Sh SEE ALSO |
|
.Xr sh 1 , |
.Xr xargs 1 |
.Xr xargs 1 |
.Sh HISTORY |
.Sh HISTORY |
The |
The |