in reply to Even and uneven numbers as RegEx
perl -i.bak -ne 'print if $. & 1' filename [download]
_________broquaint