![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
thank you for all this method was work very fine
x=`sed -n 1p Husam1.sh|awk -F"^" '{print $1}'|cut -c 1-12` y=`sed -n 2p Husam1.sh|awk -F"^" '{print $7}'|cut -c 5-14` but I need some one to explain in breaif becuase I don't under stand this two statment. and can any help, how can I subtract x from itself or any variable like it so I can get the result for example if i subtract x from It self i will get zero sorry , my freinds but i am new for the Unix thanks a lot Last edited by habuzahra; 10-19-2006 at 02:12 AM. |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Quote:
Code:
result=`expr $x - $y` Code:
(( result = x - y )) |
|||
| Google The UNIX and Linux Forums |