Is there a simple way to separate a very large number per thousands with printf, awk, sed ?
So 10000000000000 become 10 000 000 000 000
Thanks
awkbcprintfsedshell
Is there a simple way to separate a very large number per thousands with printf, awk, sed ?
So 10000000000000 become 10 000 000 000 000
Thanks
Best Answer
A simple combination of sed and rev could be employed -
first rev is required to replace number from right to left , and the second one for bringing back the original string.