-
Notifications
You must be signed in to change notification settings - Fork 0
/
za.1
37 lines (29 loc) · 1.12 KB
/
za.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.TH man 1 "07 November 2013" ".1" "zapply manual"
.SH NAME
za \- Apply a command on multiple files with zsh globbing
.SH SYNOPSIS
.B za
[\fIOPTIONS\fR] \fI'FILENAME_PATTERN'\fR \fI'COMMAND_NAME'\fR [\fIARG_PATTERN\fR]...
.SH DESCRIPTION
.PP
za takes a set of input files matched by FILENAME_PATTERN and applies COMMAND_NAME on them, substituting special variables in ARG_PATTERNs.
.SH OPTIONS
.TP
\fB\-v\fR
Be verbose; print the assembled command before executing it
.TP
\fB\-p\fR
Show progress; currently only supported in conjunction with the \fB-c\fR flag.
.TP
\fB\-c\fR \fICORES\fR
Perform the action in parallel on \fICORES\fR cores.
This setting will be passed on to the GNU parallel \fB-j\fR flag, so you can also specify all other valid formats such as \fI+n\fR, \fI-n\fR or \fIn%\fR. See \fBparallel\fR(1) for details.
.SH EXAMPLES
.PP
# display all man pages starting with 'font' and their manpage sections
.br
za '/usr/share/man/man*/font(*).(*).gz' echo 'font$1 in section $2'
.SH BUGS
No known bugs, but please tell me if you find any: http://github.com/sseemayer/zapply
.SH AUTHOR
Stefan Seemayer (mail@semicolonsoftware.de)