You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
482 B
22 lines
482 B
awk '
|
|
{
|
|
if (split($0,x,"#")) {
|
|
f = split(x[1],y)
|
|
if (f >= 2) {
|
|
if (split(y[2],z,"/") >= 2) {
|
|
a = "@" z[1] "/" z[2]
|
|
print "+" length(a) "," length(y[1]) ":" a "->" y[1]
|
|
for (i = 1;i <= f;i += 1) {
|
|
if (i != 2) {
|
|
a = y[i] "/" z[2]
|
|
print "+" length(a) "," length(z[1]) ":" a "->" z[1]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
END {
|
|
print ""
|
|
}
|
|
' | HOME/bin/cdbmake "$@"
|
|
|