That will remove all even numbered lines in the file.perl -i.bak -ne 'print if $. & 1' filename
_________
broquaint
In reply to Re: Even and uneven numbers as RegEx
by broquaint
in thread Even and uneven numbers as RegEx
by New Novice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |