make getpeername() return the original socket address which before it was intercepted
[hband-tools.git] / user-tools / cut.awk
blobda1e708b5ae087cac9a94ee99732e984ee9a6e7a
1 #!/bin/bash
3 true <<EOF
4 =pod
6 =head1 NAME
8 cut.awk - Output only the selected fields from the input stream, parameters follow awk(1) syntax
10 =head1 SEE ALSO
12 awk-cut(1)
14 =cut
16 EOF
19 fields=''
21 for fnum
23 fields=$fields${fields:+,}\$$fnum
24 done
26 exec awk "{print $fields}"