Problem with expr
Hi All,
I want to subtract two variables in shellscript. This is what I did: echo "`expr ${var1} - ${var2}`" But it throws error saying: expr: syntax error Anyone pls tell me the correct syntax for expr. |
Hi...
Welcome to the forum :) Just as a suggestion, you might want to contact Jeremy to change your username. Using your e-mail address will most likely result in your inbox being filled with SPAM very soon. ;) Regards... |
Need to change the userid
Hi,
I'm not able to find any option to change the user id in Edit Profile link.. Can u help me pls |
Quote:
There is none. As I mentioned, you will need to contact Jeremy, the forum's owner, to have this changed. ;) Regards... |
Quote:
Secondly, there are THOUSANDS of easily-found bash scripting guides that cover this...read the "Question Guidelines" link in my posting signature, and do basic research first, before posting a question. Since you know it's a syntax error, that means that you also know what to look up. An example: Code:
RESULT=`expr $var1 - $var2` |
All times are GMT -5. The time now is 10:55 AM. |