![]() |
|
|
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 |
| tell me whats wrong with this | nadman123 | Shell Programming and Scripting | 1 | 04-15-2008 12:58 AM |
| Whats wrong in this Script ??? | varungupta | UNIX for Advanced & Expert Users | 4 | 08-31-2007 05:02 AM |
| Whats wrong with this script? | kayarsenal | Shell Programming and Scripting | 2 | 08-25-2006 10:58 AM |
| Whats wrong with this 5 line script! | c19h28O2 | Shell Programming and Scripting | 9 | 05-11-2006 02:04 AM |
| whats wrong with this awk??? | george_ | Shell Programming and Scripting | 5 | 04-04-2006 05:58 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Whats wrong in the script?
if [ $1 -eq -* ]
then if [ $1 = -t ] then echo "fst argument is $1 " else if [ $1 = -r ] then "fst argument is $1" fi fi fi Can anyone tell me. My requirement is tht pass a string .. Check whether it contains "-". If yes then check if it contains -r .If -r then put messge else if -t then put some message. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|