![]() |
|
|
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 |
| problem with expr command | ravi raj kumar | UNIX for Dummies Questions & Answers | 8 | 09-03-2007 05:59 AM |
| expr command | madhu_aqua14 | UNIX for Dummies Questions & Answers | 5 | 03-05-2007 06:26 PM |
| about accecing `expr` command | bhumi | Shell Programming and Scripting | 1 | 12-28-2005 03:44 AM |
| Problems with expr | benu302000 | UNIX for Dummies Questions & Answers | 4 | 06-28-2005 09:20 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 |
|
||||
|
Problems with expr command
Hi All,
I might be making a silly mistake but I need ur help. I have initialized various variables: cur_month=`date +%m` cur_year=`date +%y` last_year=`expr $cur_year \- 1` It works fine for cur_month & cur_year....but has problems with last_year. FOR LAST YEAR IT GIVES A FOLLOWING MESSAGE "expr: An integer value was expected" Can you please help me with this. Thanks. Rooh ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|