
Former-commit-id: 07fb256bf17db3f0ffc1730b0383f8255fbb9129 Former-commit-id: fd6a1fe72a39c5633c2f9fb6de09af979c2a48f3
30 lines
307 B
Awk
30 lines
307 B
Awk
#
|
|
# genbank oneLiner
|
|
#
|
|
|
|
/^ [^ ]/ {
|
|
line = line "" substr($0, 12)
|
|
next
|
|
}
|
|
|
|
/^ [^\/]/ {
|
|
line = line "" substr($0, 21)
|
|
next
|
|
}
|
|
|
|
/^ ORGANISM/ {
|
|
if (line != "") print line
|
|
line = $0 ";"
|
|
next
|
|
}
|
|
|
|
{
|
|
if (line != "") print line
|
|
line = $0
|
|
next
|
|
}
|
|
|
|
END {
|
|
print line
|
|
}
|