Login or Register to Ask a Question and Join Our Community

Search Results

Search: Posts Made By: joeyg
4,313
Posted By joeyg
Thanks, it works
Someday, I will learn what all of those codes with the 'sed' mean :o
4,313
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...
4,313
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

 

Featured Tech Videos