I often need to count characters, so wanted to make ruler helper like:
$ ruler() { yes 123456789 | head -n100 | src/paste -s -d¹²³⁴⁵⁶⁷⁸⁹⁰ | cut
-c-$COLUMNS; }
So I could do things like:
$ yes foo | head -n10 | paste -s -d.; ruler
foo.foo.foo.foo.foo.foo.foo.foo.foo.foo
123456789¹123456789²123456789³123456789⁴123456789⁵123456789⁶123456789⁷
But paste(1) needs multi-byte support for that,
which the attached implements.
cheers,
Padraig