
Former-commit-id: d733a46f4e92f755f38e452f03a28062de6739f1 Former-commit-id: 36bdc324d2b9a0491d07d40a7e68a4cf7ea73984
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
|
|
}
|