I have been trying to define a thousands separator in
printf for a while now and I have discovered that zsh has some problems with it.
In bash I can use something like:
$ printf "%'d\n" 1234567890 1,234,567,890
but in zsh it won't work :
$ printf "%'d\n" 1234567890 printf: %': invalid directive
I have just found out that coreutils
printf will do it just fine:
$/usr/bin/printf "%'d\n" 1234567890 1,234,567,890
How can I use thousands separator in zsh?
$ zsh --version zsh 5.0.2 (x86_64-pc-linux-gnu)