![]() |
Hello and Welcome from 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 |
| If statement - How to write a null statement | april | Shell Programming and Scripting | 3 | 04-16-2008 02:14 PM |
| korn shell to bash - statement not working | brdholman | UNIX for Dummies Questions & Answers | 5 | 10-15-2007 10:49 AM |
| if statement in ksh | gfhgfnhhn | UNIX for Dummies Questions & Answers | 3 | 10-20-2006 10:37 AM |
| if and sed statement | chris1234 | Shell Programming and Scripting | 3 | 04-26-2006 12:06 AM |
| find/if statement not working | geomonap | Shell Programming and Scripting | 12 | 12-16-2005 09:56 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
If statement not working
I understand this question probably poses some child like stupidity, but I can't get this if statement to work for love or money.
#!/bin/ksh echo "Input either 1 or 2" read Num if [$Num -eq 1 ]; then echo "Message 1" if [$Num -eq 2 ]; then echo "Message 2" else echo "false" fi $ ksh decisions Input either 1 or 2 2 decisions[4]: syntax error at line 4 : `then' unmatched |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|