![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to use expr | saikumarm80 | Red Hat | 3 | 01-05-2009 03:52 PM |
| expr question | low90s | UNIX for Dummies Questions & Answers | 3 | 04-29-2008 10:52 AM |
| expr command | madhu_aqua14 | UNIX for Dummies Questions & Answers | 5 | 03-05-2007 06:26 PM |
| expr | Nathe | UNIX for Dummies Questions & Answers | 5 | 01-22-2004 07:49 PM |
| expr command | wolf | UNIX for Dummies Questions & Answers | 2 | 07-31-2001 02:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how do I get the value of expr with ksh
Hi,
I have written a korn shell script to compute the value of k. formulae : a=10 b=20 c=30 k=(a+b)*c my shell script is : a=10 b=20 c=30 k=`expr (($a + $b ) * $c )` echo $k ### here paranthesis ( ) not accepting by expr function. ### if i remove paranthesis, the value will be 610(wrong) ### but the actual value should be 900 please give me solution to kkodava@maxis.com.my thanks krishna |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|