a new shell for doing mathematical operation
hello frendz,
I am working on a project which is based on doing mathematical operation on the existing shell for example for addition in the shell without writing expr'$a+$b ' i want to do simple calculation such as c=a+b; please help me |
Perhaps:
Code:
c=$((a+b)) |
You could also use the "bc" utility, try man bc for details.
|
Quote:
In addition to the other suggestions here, have you looked at Python? |
Hi.
Quote:
Code:
% psh |
I think that python shell/interpreter is what you are looking for: http://docs.python.org/release/2.5.2...00000000000000
|
All times are GMT -5. The time now is 05:39 PM. |