in reply to How to avoid using array in concatenating string of multiple lines OR How To Read FASTA

$ grep '^[ACGT]' foo | cat -n 1 AAAAAAAAAAAAA 2 CCAAAAAAAAAAA 3 AAAAAAAAAAAAA 4 AAAAAAAAAAAAA 5 TTTTTTTTTTTTAACTGAAGATTCGC

TMTOWTDI, some of them not involving perl at all . . .

Update: D'oh! Never mind me. That'll teach me to try and make a cogent point on 5 hours sleep . . .

  • Comment on Re: How to avoid using array in concatenating string of multiple lines
  • Download Code

Replies are listed 'Best First'.
Re^2: How to avoid using array in concatenating string of multiple lines
by revdiablo (Prior) on Dec 09, 2004 at 17:23 UTC

    Nice idea, but it doesn't do what the OP wants. He wants to concatenate each sequence into one line, then print it and its sequence number. TMTOWTDI is only useful if the other ways are equivalent.