> 
> Now this is a Ruby ML, right, so maybe you would accept that I Rubyish
> the code a little bit ;)
> 
> gi = nil
> ARGF.each do |line|
>    case line
>       when /Query=\s*(gi\|.*?)\|/
>            gi = $1
>       when /Sequence/
>            puts gi.strip << " " << (1..2).map{ ARGF.readline 
> }.last.strip
>     end
> end
> 

Very nice, thank you!

-- 
Posted via http://www.ruby-forum.com/.