Main menu
BASH Shell
Linux
CentOS
Debian / Ubuntu
Ubuntu Linux
Suse
RedHat and Friends
Slackware Linux
UNIX
AIX
Mac os x
FreeBSD
FreeBSD Jails (VPS)
Openbsd
Solaris
Troubleshooting
Nginx
Networking
MySQL
See all tutorial topics
Blog
About
Contact us
Forum
RSS/FEED
Linux FAQ / Howtos
LC_NUMERIC
Unix / Linux: Bash Number Currency Formatting Thousands Grouping Separator
by
nixCraft
on
November 26, 2012
·
3 comments
I
have a number stored in a shell variable called x=”240570.578″. I would like to print $x as 2,40,570.57. How do I replace the number with their currency format under bash shell scripts?
{
3
comments
}
GET FREE TIPS
Make the most of Linux Sysadmin work!
Youtube
|
Twitter
|
Google +
Loading