I have a collection of files in a directory which I would like to search for a particular regular expression (=([14-9]|[23][0-9])
, as it happens). But I only care when this pattern falls on the second, sixth, tenth, ..., 4n+2-th line.
Is there a good way to do this?