perl -ne 'print if /PATTERN/ .. ++$c%6==0;' file.txt
In reply to Re: range of lines by delirium in thread range of lines by Anonymous Monk