in reply to Re: When every 2 lines of a file (sans first) should be 1...
in thread When every 2 lines of a file (sans first) should be 1...

I like both CountZero's and BrowserUK's solutions. They are short and readable. However, since the version I was going to post is similar to BrowserUK's, I have to say I'm a little baised toward his solution. ;) The less code I need to read through to decipher functionality, the better.

---
s;;:<).>|{>?\\^0<|)=|*?=>|!./>(%<|:%<,|(!#+%<{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see;
Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.

  • Comment on Re^2: When every 2 lines of a file (sans first) should be 1...