James Melin wrote:
I hadn't known about the $(...) function either until yesterday. So I've learned MANY interesting tricks just by asking that simple question (many thanks to everyone). I have hated the back-tik thing as well as it's really inelegant however it was all I knew.
Add this one to your toolkit too:-) People here have been doing arithmetic using $(()) which is fine, but only does integers. Sometimes one wants a decimal|floating point, so this can often be used: 06:55 [EMAIL PROTECTED] ~]$ echo 'scale=4;(14595.470+200.00)/4331.00' | bc 3.4161 06:55 [EMAIL PROTECTED] ~]$ I often do that for simple financial calculations (that's one of them). For more, man bc -- Cheers John -- spambait [EMAIL PROTECTED] [EMAIL PROTECTED] Please do not reply off-list ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
