The same way as @codebrainz's suggestion, you can get this to work easily with sed:

sed -n '1~2p'

Replace 1 with the starting line, and 2 with the step you want -- here it does exactly what you asked for, print every second line starting at line 1, effectively giving every odd line.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.