repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
output asked headers in the order they were asked; avoid header name spoofing by...
[hband-tools.git]
/
user-tools
/
pyzor-files
blob
60b5b128cc854bde98ab2136bad38a484897d943
1
#!/bin/bash
2
3
true
<<EOF
4
=pod
5
6
=head1 NAME
7
8
pyzor-files - Run a pyzor(1) command on the given files
9
10
=cut
11
12
EOF
13
14
15
if
[
$#
=
0
]
16
then
17
echo
"Usage: pyzor-files [<action>] -- <file-1> [<file-2> [<file-n> ...]]"
18
echo
"Note that 'check' action returns the last checked file's status only."
19
exit -1
20
fi
21
22
args
=()
23
24
while
[
$#
-gt
0
]
25
do
26
if
[
".
$1
"
=
.
--
]
27
then
28
shift
29
break
30
else
31
args
+=(
"
$1
"
)
32
fi
33
shift
34
done
35
36
for
file
in
"$@"
37
do
38
pyzor
"
${args[@]}
"
<
"
$file
"
39
done