![]() |
|
|
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 |
| "too big" and "not enough memory" errors in shell script | jerardfjay | AIX | 11 | 03-16-2009 11:09 PM |
| ERROR: more than one instance of overloaded function "vprintf" has "C" linkage | donatoll | HP-UX | 0 | 10-14-2008 06:35 AM |
| "<< Unmatched" in ksh script using sftp | michaelak28 | Shell Programming and Scripting | 6 | 08-28-2008 09:49 AM |
| Getting error "syntax error at line 78 : `<' unmatched" | sshah1001 | Shell Programming and Scripting | 1 | 05-08-2008 06:41 PM |
| No utpmx entry: you must exec "login" from lowest level "shell" | peterpan | UNIX for Dummies Questions & Answers | 0 | 01-18-2006 04:15 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
"else" unmatched error in shell script.
Friends
I have pasted a script below [36]d08083: cat tests #!/bin/ksh if [ "$2" -eq "" ] then rm -r Last-Previous mv Previous Last-Previous mv Current Previous mkdir Current #cd Current mv $1 Current else cd Current mv "$1\$2" Current\*\ fi cheux301 @ /users/d08083 [37]d08083: ./tests ./tests[2]: syntax error at line 10 : `else' unmatched cheux301 @ /users/d08083 Any idea why i am getting the error!! Thanks HG |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|