I have  the following script;

Ugly line wrapping may occur
--------------------------------------------------------------------------------------------------------------------------------------
#!/bin/bash

amount1=1000
amount2=200
amount3=30
plainint=24

echo -e "Description \t Amount \namount one \t \$$amount1 \namount two \t 
\$$amount2 \namount three \t \$$amount3 \njust a plain integer \t $plainint" 
   |showtable -t=1
-----------------------------------------------------------------------------------------------------------------------------------------

This gives the following result;

monospace font required to display properly
Hint: use the x key to toggle to monospace font in kmail.

 +-----------------------+---------+
 |      Description      | Amount  |
 +-----------------------+---------+
 | amount one            |  $1000  |
 | amount two            |   $200  |
 | amount three          |    $30  |
 | just a plain integer  |  $24.00 |
 +-----------------------+---------+

Does anyone know how I can get the plain integer value to display without the 
currency formatting?

Cheers Ross Drummond

Reply via email to