output asked headers in the order they were asked; avoid header name spoofing by...
[hband-tools.git] / user-tools / pyzor-files
blob60b5b128cc854bde98ab2136bad38a484897d943
1 #!/bin/bash
3 true <<EOF
4 =pod
6 =head1 NAME
8 pyzor-files - Run a pyzor(1) command on the given files
10 =cut
12 EOF
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
22 args=()
24 while [ $# -gt 0 ]
26 if [ ".$1" = .-- ]
27 then
28 shift
29 break
30 else
31 args+=("$1")
33 shift
34 done
36 for file in "$@"
38 pyzor "${args[@]}" < "$file"
39 done