in reply to
How to Print Every Other Line
awkmonks to the rescue!
awk 'NR % 2' filename
[download]
Or save the output of '
echo NR%2 | a2p
' (works on DOS or Unix) and run as a perl program.
Comment on
Re: How to Print Every Other Line
Select
or
Download
Code
In Section
Seekers of Perl Wisdom