Search Results

Search: Posts Made By: joeyg
5,035
Posted By joeyg
Thanks, it works
Someday, I will learn what all of those codes with the 'sed' mean :o
5,035
Posted By joeyg
the number of digits is not fixed
The data to report is a counter; my guess is normally between one and seven digits. Thus I could want to see
1,234,567
123,456
12,345
1,234
123
12
1
I could be...
5,035
Posted By joeyg
formatted output with commas
var=12345
echo $var >>>12345

printf "%8.1f \n" $var >>> 12345.0

How to get this as 12,345?
I suppose I could break into sections by dividing by 1000 or 1000000.
But, is the a trick to...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy