A one liner:
perl -ne 'print $_ x ++$i, " " for split //'
To understand, read print, split, perlvar (explains $_), perlop (explains x, ++, and //), perlsyn (explains for), and perlrun (explains -ne).
In reply to Re: Five digit number display separately
by choroba
in thread Five digit number display separately
by TimTim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |