LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   calculation addition (http://www.linuxquestions.org/questions/linux-newbie-8/calculation-addition-860365/)

ted_chou12 02-02-2011 10:02 PM

calculation addition
 
Hi, I have a variable $L, I wish to subtract 30 from it and name $K, should this be:?
Code:

K=$(echo $L - 30)
Thanks

anomie 02-02-2011 10:31 PM

Hi, read here -

http://www.tldp.org/LDP/abs/html/arithexp.html


All times are GMT -5. The time now is 01:31 AM.