![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| expr problem | kotasateesh | UNIX for Dummies Questions & Answers | 4 | 09-03-2007 03:27 AM |
| expr problem | kotasateesh | Shell Programming and Scripting | 2 | 08-31-2007 09:00 AM |
| expr command | madhu_aqua14 | UNIX for Dummies Questions & Answers | 5 | 03-05-2007 06:26 PM |
| Problems with expr command | rooh | UNIX for Dummies Questions & Answers | 2 | 01-17-2003 11:03 AM |
| 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 |
|
||||
|
problem with expr command
hi Unix gurus, Pls consider the following piece of code str='hello' length=echo $str|wc -c echo $length y= ` expr \( 80 - $length \) ` echo $y The last echo stmt is displaying 0 as the result. If i put direct value like 6 instead of $length in i 3rd stmt it is giving the correct result. I came to know that $length is not getting accessed inside of expr command. any help pls. cheers Ravi Raj Kumar |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|