Skip to end of metadata
Go to start of metadata

Sometimes, one may need to repeat the same record, just as linux yes does. The problem with yes is that you cannot tell it to repeat at a given time interval.

Now, csv-repeat --ignore-eof can do it for you, which is useful for example, if you need to quickly fudge a sort of heartbeat stream, a simulated data stream, or alike:

> echo hello | csv-repeat --period 0.1 --ignore-eof | head -n5
hello
hello
hello
hello
hello
> echo hello | csv-repeat --period 0.1 --ignore-eof | csv-time-stamp | head -n5
20180420T034741.498771,hello
20180420T034741.600020,hello
20180420T034741.700202,hello
20180420T034741.800367,hello
20180420T034741.900539,hello

Binary mode is supported as usual.

  • No labels