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
make getpeername() return the original socket address which before it was intercepted
[hband-tools.git]
/
user-tools
/
cut.awk
blob
da1e708b5ae087cac9a94ee99732e984ee9a6e7a
1
#!/bin/bash
2
3
true
<<EOF
4
=pod
5
6
=head1 NAME
7
8
cut.awk - Output only the selected fields from the input stream, parameters follow awk(1) syntax
9
10
=head1 SEE ALSO
11
12
awk-cut(1)
13
14
=cut
15
16
EOF
17
18
19
fields
=
''
20
21
for
fnum
22
do
23
fields
=
$fields${fields:+,}
\$
$fnum
24
done
25
26
exec
awk
"{print
$fields
}"