perl -wlne"($.%4)-1 and print" yourFile