Files
annotate/detectors/cds/tools/compare/lib/gbk.oneliner.awk
alain viari d77a0dfe67 added cds/tools/compare
Former-commit-id: 07fb256bf17db3f0ffc1730b0383f8255fbb9129
Former-commit-id: fd6a1fe72a39c5633c2f9fb6de09af979c2a48f3
2015-11-09 01:15:14 +01:00

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
}