Mercurial > hg > dtl-dml-cliopatria
view cpack/dml/scripts/compression/rptlen @ 7:3c7cc53984a6 no-matlab tip
removed rcutils as seem incompatible with this version
(no history/2 defined)
author | wolffd.mail@googlemail.com |
---|---|
date | Wed, 25 Jul 2018 15:51:48 +0000 |
parents | 718306e29690 |
children |
line wrap: on
line source
#!/usr/bin/env bash # Insert rptlen into a pipeline to report the number of bytes passing through. # NB. if the pipeline is terminated early by a later consuming process, the # byte count will be wrong. function buflen { len=$(length) echo "$1:" $len } function buflen2 { length | sed -e "s/^/$1:/" } tee >(buflen2 "$1" 1>&2)