Skipping directly to level 4 Now I know my ABCs, won't you come and golf with me? Browse other questions tagged linux makefile or ask your own question. Make up your mind. share|improve this answer answered Aug 18 '12 at 12:08 Gilles 369k666681119 1 Thanks clearly a gap in my knowledge, I don't script much so wasn't aware of that! check over here
Browse other questions tagged crontab mysqldump or ask your own question. An empire to last a hundred centuries When was this language released? If you'd like to contribute content, let us know. An empire to last a hundred centuries When was this language released?
Set "execute" permissions (by running "chmod +rx tmp.sh") 5. Registration is quick, simple and absolutely free. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed How to handle spending money for extended trip to Europe?
The shebang line must be the very first thing in the file. grep "fi " cldtest.sh only reveals 3 matching fi statements. How to replace tab by other command? Syntax Error Unexpected End Of File In Unix Shell Script Not the answer you're looking for?
Exporting an animation as a gif file Natural construction My home country claims I am a dual national of another country, the country in question does not. Syntax Error End Of File Unexpected (expecting Done ) share|improve this answer edited Jun 3 '12 at 14:51 answered Jun 3 '12 at 13:33 Gilles 32.7k580123 [[ $3 < 50 ]] compares $3 with 50 lexicographically, so if share|improve this answer answered Mar 13 '14 at 5:10 musthafa 112 add a comment| up vote 0 down vote I had the issue this issue when I wrote the script in Adv Reply January 12th, 2011 #10 dwhitney67 View Profile View Forum Posts Private Message Tolerant of Ubuntu Join Date Jun 2007 Location Maryland, US Beans 6,270 DistroKubuntu Re: Question about
asked 3 years ago viewed 2683 times active 3 years ago Related 0Bash script error trying to find directory of script itself: unexpected end of file5“unexpected end of file” in bash Syntax Error Unexpected End Of File In Php Furthermore, instead of an else block that consists entirely of an if statement, you should use elif. The script is linked in that article but convenience you can find it here also. linux makefile share|improve this question asked Jan 29 '13 at 0:24 Étienne 3,11911541 Why not [ -d $(INSTDIR) ] || mkdir -p $(INSTDIR}?
UNIX is a registered trademark of The Open Group. When was this language released? Syntax Error End Of File Unexpected (expecting Fi ) I think i should rest for a bit these is an embarassing mistake! –dimas Jul 25 '13 at 1:56 add a comment| Your Answer draft saved draft discarded Sign up Syntax Error End Of File Unexpected (expecting Then ) Here are the codes: #!/bin/bash list-header: for file in a.cpp b.cpp b.h do echo "$file includes headers: " grep -E '^#include' $file | cut -f2 done I got this error message:
Religious supervisor wants to thank god in the acknowledgements Is it possible to check for existence of member templates just by an identifier? check my blog more problems: If you do a grep (-A1: + 1 line context) grep -A1 "if " cldtest.sh you find some embedded ifs, and 4 if/then blocks. Is my workplace warning for texting my boss's private phone at night justified? GTIN validation What are the holes on the sides of a computer case frame for? Syntax Error Unexpected End Of File In Linux
bash shell ubuntu shell-script share|improve this question edited Aug 18 '12 at 12:08 Gilles 369k666681119 asked Aug 18 '12 at 11:37 kemra102 4681613 The shebang is really in line Which requires more energy: walking 1 km or cycling 1 km at the same speed? Join them; it only takes a minute: Sign up /bin/sh: 1: Syntax error: end of file unexpected (expecting “)”) up vote 1 down vote favorite mysqldump -u user -pPassword databasename | http://gatoisland.com/syntax-error/bash-syntax-error-unexpected-end-of-file.php more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
Technical term for Internet-like network? Syntax Error Unexpected End Of File Bash The best way to spot these is to use correct indentation, which will show you where you have a broken control structure, and syntax highlighting, which will show you where quotes Join them; it only takes a minute: Sign up /bin/sh: Syntax Error: end of file unexpected up vote 2 down vote favorite I am getting an error when running the following
I have checked the man files about if statements, my ubuntu programming book, and various other sources around the internet, and I really cannot see any reason why the above code Why? Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Syntax Error Unexpected End Of File Shell Script Were slings used for throwing hand grenades?
Thanks. –Gilles Jun 3 '12 at 14:52 Ok, thank you very much, sorry for these dumb errors, it's one of my first scripts. If any particular file does not exist (or cannot be created), the 'make' process will abort and a message indicating the failure will be displayed. Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. have a peek at these guys Unfortunately, the error still remains.
When dash reaches line 68, it sees a syntax error: that parenthesis doesn't mean anything to it in context. Not the answer you're looking for? Is 8:00 AM an unreasonable time to meet with my graduate students and post-doc? Are you new to LinuxQuestions.org?
Finding the desired way later means double work in such spaghetti code. How to deal with a really persuasive character? So sayeth the Shepherd Will the medium be able to last 100 years? American English: are [ə] and [ʌ] different phonemes?
Find More Posts by paulsm4 View Blog 04-29-2010, 02:58 PM #10 roxie600 LQ Newbie Registered: Apr 2010 Posts: 5 Original Poster Rep: Am still getting the end of file Browse other questions tagged linux bash or ask your own question. catkin View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by catkin View Blog 04-29-2010, 11:20 AM #4 roxie600 LQ Newbie Registered: Apr GTIN validation On THE other hand or on another hand?
I am down to the point now of trying random combinations of indentations, just to see if I can find one that works. I haven't reviewed your logic. I have simplified my code majorly and still get the same error so there's obviously something wrong with my basic syntax. #usr/bin/sh if [$1 -lt $2]; then echo "done" else echo