repo.or.cz
/
cmdllinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update repository
[cmdllinux.git]
/
bash_n_examples
/
awk
/
cutpkg.awk
blob
7c67c26a3bb4a830a59366db99911e8147253a91
1
2
BEGIN
{
3
FS
=
"-"
4
}
5
6
{
7
print
"*"
$
0
"*"
8
print
FS
":"
NF
9
print
"
\"
"
$
NF
"
\"
"
10
if
(
NF
>
3
) {
11
NF
=
NF
-
3
12
print
$
0
13
}
else
{
14
print
$
0
15
}
16
}