in reply to Conditionally Substituting multi-line string with single string
I'd approach it differently. For each line, I would check if the line consisted of all N's. If so, set a flag to indicate this, print nothing, and move to the next line
Repeat until you find a line that is NOT all N's. At that point, print your ">scaffold00002.$something" line, and the process the current line as appropriate.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Conditionally Substituting multi-line string with single string
by gone2015 (Deacon) on Jan 15, 2009 at 23:27 UTC |