zindex icon indicating copy to clipboard operation
zindex copied to clipboard

Feature request: option for getting every nth line

Open schelhorn opened this issue 8 years ago • 1 comments

It would be great to have an option for getting every nth line as well.

schelhorn avatar Dec 15 '16 12:12 schelhorn

Would be pretty easy to add: what's the use case and how would it differ from zcat file.gz | <some AWK to pick Nth line> ? Is this something you'd often do with different values of n ? In the short term you can use zq with a list of line numbers, but that's not ideal I guess.

mattgodbolt avatar Dec 15 '16 13:12 mattgodbolt