in reply to How to Print Every Other Line
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'<>'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to Print Every Other Line
by japhy (Canon) on Jun 30, 2004 at 21:04 UTC | |
|
Re^2: How to Print Every Other Line
by BrowserUk (Patriarch) on Jun 30, 2004 at 20:49 UTC | |
|
Re^2: How to Print Every Other Line
by Jasper (Chaplain) on Jul 01, 2004 at 14:24 UTC |