The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Simple Script
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Simple Script
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-11-2008
yongitz
Registered User
Join Date: Apr 2008
Location: Philippines
Posts: 20
Hi! If you're doing arithmetic expression, you can do it like the examples below:
Code:
A=`expr $M + $R + $T`
or
Code:
A=$((M+R+T))
Last edited by yongitz; 05-11-2008 at
06:04 PM
.
yongitz
View Public Profile
Find all posts by yongitz