Robert Edmonds wrote:
> How about a utility to sample every Nth line of stdin to stdout? ...
GNU sed does this:
$ seq 100 | sed -n '0~35p'
35
70
Regards
Carsten
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contac
Package: moreutils
Version: 0.24
Severity: wishlist
How about a utility to sample every Nth line of stdin to stdout? This
could be useful for humans monitoring the real-time output of noisy
programs like tshark or as part of a pipeline prior to an expensive
filter. Something like:
$ cat samp.c
2 matches
Mail list logo