![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| expr question | low90s | UNIX for Dummies Questions & Answers | 3 | 04-29-2008 06:52 AM |
| expr command | madhu_aqua14 | UNIX for Dummies Questions & Answers | 5 | 03-05-2007 03:26 PM |
| expr | Nathe | UNIX for Dummies Questions & Answers | 5 | 01-22-2004 04:49 PM |
| how do I get the value of expr with ksh | krishna | UNIX for Advanced & Expert Users | 3 | 08-26-2001 10:51 AM |
| expr command | wolf | UNIX for Dummies Questions & Answers | 2 | 07-30-2001 10:43 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
i am new to shell programming, currently using redhat linux of version
2.4.20-8. i have problem in executing expr command in the following shell script $ x=5 $ x='expr $x + 1' $ echo $x the output is displaying always expr $x + 1 Pls guide me for the above query |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
how to use expr
You need to use back tics not single quotes
x=`expr $x + 1` |
|||
| Google The UNIX and Linux Forums |