perl -pe'eof||<>'
Update: Fixed bug found by BrowserUK. Thanks japhy!
Update: A few people have asked to see the original, buggy version. It was simply perl -pe'<>'.
In reply to Re: How to Print Every Other Line
by sgifford
in thread How to Print Every Other Line
by Neuroactive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |