Home > Syntax Error > Ksh Syntax Error If' Unmatched

Ksh Syntax Error If' Unmatched


And you should be aware this is an Oracle forum and not a Unix one. That sets the text off as code and makes it easier to read ... OZGUL SAS EBI Admin/System Programmer IV Vice President Citizens Financial Group Smitfield, RI Top For discussions on SAS please visit the Business Intelligence - General Discussions group. Tom (SA I talked to about this), said it might be possible to put ksh on the box instead of pdksh, but does not know what else this would impact, or his comment is here

PingMe replied Jul 7, 2011 I make sure I have execute right to lookup_tables.sas and I tried your code as follows and get another error - 'then' unmatched. Browse other questions tagged syntax syntax-error ksh or ask your own question. Let me try as you suggested. It was flaky acouple of years ago, and I gave up using it, but it might be worth another look now. http://stackoverflow.com/questions/35649271/ksh-syntax-error-if-unmatched

Ksh Syntax Error If' Unmatched

Thanks, Amber Taylor Remove advertisements Sponsored Links akpopa View Public Profile Find all posts by akpopa #2 09-04-2001 PxT Registered User Join Date: Oct 2000 Last Activity: Start a new thread here 5196839 Related Discussions grep for errors Syntax Error : 'bad suffix on number' Compact df without an intermediary temp file Problem With Print Command Unix Shell Where can I download one of those from ? 0 Kudos Reply The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. Thanks so much for your help.

Sorry, I have to ask, but your last response hints that you did not.regards,John K. jayita mandal replied Jul 7, 2011 Hi, Next , please check whether the file /sasproject/test/lookup_tables.sas really exists or not with execute permission. Good Luck, Ski Reply With Quote 09-10-2006 #9 drl View Profile View Forum Posts Private Message View Articles Linux Engineer Join Date Apr 2006 Location Saint Paul, MN, USA / CentOS, If the pattern matches a trailing portion of the expanded value of parameter, then the result of the expansion is the expanded value of parameter with the shortest matching pat- tern

Most of our scripts are bash scripts, so maybe it is time to write this in bash. ======== Couldn't it be possible to run whatever is given after last '|' pipe If Unmatched Error In Unix Shell Script Yes, I tried your lengthy solution and found that we were getting that error due to line no: 65. (1) /home/sparc/bin/tdlconf [[email protected]] $ ./tdlconf.sh > tdlconf.out-test ./tdlconf.sh[54]: syntax error: `{' unmatched I am not sure that I can help you much beyond this point. How much more than my mortgage should I charge for rent?

Registration on or use of this site constitutes acceptance of our Privacy Policy. Page 1 of 2 1 2 Last Jump to page: Results 1 to 10 of 11 Thread: Ksh script error '{' unmatched Thread Tools Show Printable Version Email this Page… Subscribe I had somebody complain about one of my posts causing error: not found which was a bit annoying. Indeed I edited the files on an PC and transferred them to the HP - this worked fine for all the etc/*s and other config files I had to edit during

  • Report message to a moderator Re: Error message ' ' ' unmatched [message #301800 is a reply to message #301797] Thu, 21 February 2008 15:04 Michel Cadot Messages: 63956Registered:
  • If parameter is @ or *, the pattern removal operation is applied to each positional parameter in turn, and the expansion is the resultant list.
  • See...
  • Senior MemberAccount Moderator Did you read what you posted and quoted Mahesh Rajendran?
  • And vi causes problems with my telnet client (CRT for Win) - so I used a Win-Editor with built-in ftp-client.Well at least I am now aware of the problem - strange
  • One of my seniors told me that on our current Linux box, we are using pdksh (instead of ksh, that we were using on SunOS earlier).
  • The time now is 10:43 PM.
  • Honour has been the reward for what he gave (clavin coolidge) 0 Kudos Reply john korterman Honored Contributor [Founder] Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print
  • Thank you for your earlier reply, I would have never known that spaces were needed inside the brackets!

If Unmatched Error In Unix Shell Script

Why cast an A-lister for Groot? http://www.orafaq.com/forum/t/97699/ Number sets symbols in LaTeX Is there a developers image of 16.04 LTS? Ksh Syntax Error If' Unmatched Thu Jul 7 13:56:53 EDT 2011 lookup_tables2.sas error: 5 The end of automation procedure Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes Syntax Error << Unmatched We look forward to helping you with the challenge of the other 10%. ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP ) Reply

There are a lot of issues here. http://fullflash.net/syntax-error/syntax-error-unexpected-39-else-39-t-else-in-php.html However, I'm fairly sure he was using the feature below like this: Code: #!/bin/sh # @(#) s1 Demonstrate shell pattern. PCMag Digital Group AdChoices unused Log In E-mail or User ID Password Keep me signed in Recover Password Create an Account Blogs Discussions CHOOSE A TOPIC Business Intelligence C Languages Korn Shell Script PingMe asked Jul 6, 2011 | Replies (9) I am new to scripting and trying to execute this script. Dos2unix

Can you execute it withsh -x iftest.shand post the output ?Regards,Tom A life ? Having a problem logging in? SMB Case for Expense Management Automation Using Virtualization to Balance Work with TCO MoreWhitePapers Best Answer 1 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | weblink Report message to a moderator Re: Error message ' ' ' unmatched [message #301795 is a reply to message #301793] Thu, 21 February 2008 14:29 shree_z Messages: 75Registered: February

Error 18: Source inside drive ================ MY script to test for this error ================ # #!/bin/sh # DBA1='[email protected]';export DBA1 # PATH=$PATH:/usr/bin:/usr/sbin/:/sbin:/bin:/usr/opt/networker/bin; export PATH LOGPATH=/data7/nsr/logs; export LOGPATH # # LOGFILE=$LOGPATH/rror; export LOGFILE Are these supposed to be comments? Registration is quick, simple and absolutely free.

that would have solved your problem ....

its giving me error . If so, I suggest you bite the bullet and learn vi. There are differences between the two. Please visit this page to clear all LQ-related cookies.

Or are we left to the trial and error method? If you ran on Solaris, you were probably using the real Korn shell. echo 'NO ERROR ' `date +"%m/%d/%y %H:%M"` >> $LOGFILE 2>&1 added LG=/data7/nsr/lg; export LG and made the above line......... http://fullflash.net/syntax-error/syntax-error-unexpected-end-in-php.html First, I am happy to hear that you may have found some reason why the script behaves as it does.

I have also checked for any extra space at the end on line 54 and 67. Magic Item Distribution?