I want a command(named rtwc) that acts like wc -c
. it reads an input stream(stdin)
and writes the number of bytes read after 1 second then update the number every one second. In fact it shows the progress of reading.
This command is useful in a number of situations like performance testing
One can test the command with:
cat /dev/random | rtwc