![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with ELIF statement | Brewer27 | UNIX for Dummies Questions & Answers | 4 | 05-18-2008 07:02 PM |
| have a problem with if elif loop .. plz help me with the script | Syms | UNIX for Dummies Questions & Answers | 4 | 11-01-2007 02:59 AM |
| IF THEN ELIF question in BOURNE SHELL | arun_st | UNIX for Dummies Questions & Answers | 4 | 04-20-2007 12:41 PM |
| elif not expected | pv0428 | Shell Programming and Scripting | 9 | 07-28-2005 04:38 AM |
| if...elif...fi condition in Unix | abidmalik | UNIX for Dummies Questions & Answers | 9 | 09-05-2002 08:35 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
If..elif..else...fi
Hi all,
I got some problems on executing the following scripts. Scripts: if [[ ${var1} == 1 ]]; then echo "M${str}O 0 1" >> ${tempFile} elif [[ ${var2} == "U"]]; then echo "M${str}O 1 0" >> ${tempFile} else echo "M${str}O 0 0" >> ${tempFile} fi Error: "`;' is not expected." what's the problem? Thanks, Rock |
|
||||
|
yes ... thank you
|
| Sponsored Links | ||
|
|