Home > Syntax Error > Bin/sh 1 Syntax Error End Of File Unexpected

Bin/sh 1 Syntax Error End Of File Unexpected

Contents

Adv Reply January 12th, 2011 #3 the_photon View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jan 2011 Beans 8 Re: Question about if statements in But this script: #!/bin/bash for i in `seq 1 5`; do echo $i done ...outputs this error: Syntax error: end of file unexpected (expecting "done") Is there something wrong with that Linked 0 Error in script “Unexpected end of file” 123 How to check if running in Cygwin, Mac or Linux? 94 '\r': command not found - .bashrc / .bash_profile 0 bashrc Try changing it to #!/bin/bash catkin View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by catkin View Blog 04-29-2010, 12:43 PM #7 check my blog

Meaning of Guns and ghee Skipping directly to level 4 Do COB LEDs usually need electrically insulating from the heatsink? Syntax error: unexpected “(”-3Shell script- syntax error: unexpected end of file9Unexpected EOF and syntax error0Syntax Error: unexpected end of file — Bash script-1Syntax Error: unexpected end of file — Bash script1C So I started experimenting by removing all the sudo lines and running the whole script via sudo at the command line like so: [email protected]:~$ sudo ./pi_dev_env_install.sh This works fine as expected What does an 'ü' mean?

Syntax Error End Of File Unexpected (expecting Fi )

For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. How to deal with a very weak student? In the latter part of your code, you have 5 ifs and 4 fis.

How does Coruscant get food? My girlfriend has mentioned disowning her 14 y/o transgender daughter Did Donald Trump call Alicia Machado "Miss Piggy" and "Miss Housekeeping"? Why did companions have such high social standing? Syntax Error Unexpected End Of File In Unix Shell Script Why does Windows show "This device can perform faster" notification if I connect it clumsily?

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 Syntax Error End Of File Unexpected (expecting Done ) Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Question about if statements Video displays in Star Wars How does Gandalf get informed of Bilbo's 111st birthday party? Skipping directly to level 4 Now I know my ABCs, won't you come and golf with me?

How to deal with a really persuasive character? Syntax Error Unexpected End Of File In Php grail View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by grail Thread Tools Show Printable Version Email this Page Search this Thread Advanced share|improve this answer answered Mar 27 '12 at 9:24 ams 15.3k22655 add a comment| up vote 1 down vote I had this problem when running some script in cygwin. asked 4 years ago viewed 14026 times active 4 years ago Related 0Bash script throws “syntax error near unexpected token `}'” when run0line 45 Syntax error: unexpected end of file0Syntax Error:

Syntax Error End Of File Unexpected (expecting Done )

Sometimes some hidden characters are there in the source. share|improve this answer edited Jul 25 '13 at 1:59 answered Jul 25 '13 at 1:54 Evan Teitelman 13.2k43758 Thanks alot evan! Syntax Error End Of File Unexpected (expecting Fi ) Why write an entire bash script in functions? Syntax Error End Of File Unexpected (expecting Then ) Set "execute" permissions (by running "chmod +rx tmp.sh") 5.

Maybe the shell needs ; here and there when the command is all on one line - I always need to look those things up when I have multi-line shell commands click site Least Common Multiple How to indicate you are going straight? 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 Join our community today! Syntax Error Unexpected End Of File In Linux

How to deal with a really persuasive character? Been trying for 2 hrs now but I cant seem to get it to work. #!/bin/bash echo "Search for MMSC or WAP connectivity errors" sftpErrorCount=$(tail -100 3_ERRORs_log.txt | grep "MMSC_Upload2" | However, my Text editor was set to using LF and I recheck this by delete all EOL and re-added. news An empire to last a hundred centuries When was this language released?

Still getting the error. –soufrk Sep 1 at 6:58 @soufrk Is it sonarqube.sh or sonar.sh? Syntax Error Unexpected End Of File Bash How to map and sum a list fast? 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

Registration is quick, simple and absolutely free.

Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Which requires more energy: walking 1 km or cycling 1 km at the same speed? The Makefile will automatically check for the existence of any files which are needed to build the final product. Syntax Error Unexpected End Of File Shell Script Hope it helps...

Browse other questions tagged bash scripts or ask your own question. How was this bridge burning and collapsing scene filmed in Buster Keaton's The General? Since dash (like all other shells) is an interpreter, it won't complain until the execution reaches the problematic line. More about the author Even longer still, I frequently encounter the situation where I download some piece of software (such as Tcl/Tk) and it won't install on my computer, and complains that it did not

Now I know my ABCs, won't you come and golf with me? Plot of the image of a circle by some functions What does Sauron need with mithril? or recreate the script in linux iteself. Join them; it only takes a minute: Sign up Bash: for loop in Makefile: unexpected end of file up vote 2 down vote favorite 1 I am writing a Makefile, which

Clean up your code, and errors start to stand out. is searched. Not the answer you're looking for? If we have two functions that have composition differentiable does it mean both are differentiable?

How to deal with a really persuasive character? American English: are [ə] and [ʌ] different phonemes? 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 I get this error message : "sub_change_dirrect: line 14: syntax error: unexpected end of file" bash scripts share|improve this question edited Jun 3 '12 at 12:54 adempewolff 5,60011943 asked Jun 3

GTIN validation I accepted a counter offer and regret it: can I go back and contact the previous company?