Home > Syntax Error > Syntax Error Near Unexpected Token Done' For Loop

Syntax Error Near Unexpected Token Done' For Loop

Contents

That character gets interpreted as a character. What mechanical effects would the common cold have? Run od -bc on your source file and paste the output in your question. –anubhava Aug 21 '13 at 21:37 @KeithThompson You're right that there is an error message The end of a script doesn't need to be marked in any special way; it's just the end of the file. Source

I imagine very few shells in use today would spawn a new process. –William Pursell May 10 '12 at 15:36 add a comment| up vote 1 down vote You could replace Nov 2 '15 at 3:11 add a comment| up vote 2 down vote What is the error you're getting? $ bash file.sh test.sh: line 8: syntax error: unexpected end of file bash shell syntax for-loop syntax-error share|improve this question asked May 10 '12 at 12:38 fenerlitk 72651634 add a comment| 5 Answers 5 active oldest votes up vote 3 down vote accepted You're probably aware but your heading has a period in it instead of a shebang. #./bin/bash share|improve this answer answered Jul 13 '15 at 20:57 Aguevara 516 add a comment| Your

Syntax Error Near Unexpected Token Done' For Loop

Is an internal HDD with Ubuntu automatically bootable from an external USB case? Try with only -x to see where it first stops to make sense. Home Help Search Login Register PCLinuxOS-Forums » Help » General » bash "while" loop [SOLVED] « previous next » Print Pages: [1] Go Down Author Topic: bash "while" loop [SOLVED] (Read

Why does Snoke not cover his face? how could I knew what was your intended use ? done share|improve this answer edited Jul 13 '15 at 21:04 answered Jul 13 '15 at 20:44 paddy 35.6k42463 That won't cause an error on the done line. –Barmar Jul Bash Syntax Error Near Unexpected Token Do' Unfortunately, it did not work. :-( I was given the following error: ./Present.sh: line 35: syntax error near unexpected token done' ./Present.sh: line 35: done )' –Dave Apr 11 '11 at

All Rights Reserved. Syntax Error Near Unexpected Token Do In Shell Script What are the ground and flight requirements for high performance endorsement? Resubmitting elsewhere without any key change when a paper is rejected In 5e, do you get to use the extra attack as well when you ready an attack action? In 5e, do you get to use the extra attack as well when you ready an attack action?

cat -v will show them as ^M and M-BM- or M- respectively. Syntax Error Near Unexpected Token Done' Cygwin Thanks so much for the help!!! What are some counter-intuitive results in mathematics that involve only finite objects? Idiomatic Expression that basically says "What's bad for you is good for me" Should a country name in a country selection list be the country's local name?

Syntax Error Near Unexpected Token Do In Shell Script

Use dos2unix to fix it. –Barmar Jul 13 '15 at 21:02 | show 4 more comments up vote 0 down vote From my experience when working with brackets and if loops, An electronics company produces devices that work properly 95% of the time Aligning texts side by side with equations in \align environment Deep theorem with trivial proof French vs Italian resistance Syntax Error Near Unexpected Token Done' For Loop Forum Operations by The UNIX and Linux Forums While Loop Syntax Error Near Unexpected Token Done how to match everything between a string and before next space Why would Snape set his office password to 'Dumbledore'?

y/n; read yn; if [$yn = y]; then exit; fi; donebash: syntax error near unexpected token `done'Thanks!Shimon « Last Edit: December 11, 2014, 04:12:30 PM by shimonl » Logged as Guest this contact form Random832, you are the best - thank you so much!!!! –Dave Apr 11 '11 at 3:02 add a comment| up vote 0 down vote I looked at a for/done example and share|improve this answer answered May 10 '12 at 12:42 Ja═óck 123k19160205 what do you mean by that? –fenerlitk May 10 '12 at 12:44 2 do true; done ... How to construct a 3D 10-sided Die (Pentagonal trapezohedron) and Spin to a face? Syntax Error Near Unexpected Token Do For Loop

Lagrange multiplier on unit sphere Idiomatic Expression that basically says "What's bad for you is good for me" Did millions of illegal immigrants vote in the 2016 USA election? UNIX is a registered trademark of The Open Group. Taking away one of the dones still gives me the same error. ./Present.sh: line 35: syntax error near unexpected token done' ./Present.sh: line 35: done ' –Dave Apr 11 '11 at have a peek here If it's empty, this will result in an error, because Bash will be interpreting [ == 0].

What are the ground and flight requirements for high performance endorsement? Syntax Error Near Unexpected Token Do Mac Unix & Linux Stack Exchange works best with JavaScript enabled current community chat Unix & Linux Unix & Linux Meta your communities Sign up or log in to customize your list. 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

It's used only to mark the end of a while, for, or until loop.

Not the answer you're looking for? It was quite un-understandable at first, I think Word's hidden characters and/or formatting were the issue. Resubmitting elsewhere without any key change when a paper is rejected Why do the Avengers have bad radio discipline? Syntax Error Done Unexpected This is symptomatic of unexpected CR characters in the text file.

Why do the Avengers have bad radio discipline? Ordering a bulky item in the USA How to reward good players, in order to teach other players by example Add a language to a polyglot Schengen visa to Norway to Will majority of population dismiss a video of fight between two supernatural beings? Check This Out How to write an effective but very gentle reminder email to supervisor to check the Manuscript?

Browse other questions tagged linux bash or ask your own question. My code is: for var in bent bound bled bred brought built burned burnt bought caught clung crept dealt dug dived dreamed dreamt fed felt fought found fled flung ground hung What dice mechanic gives a bell curve distribution that narrows and increases mean as skill increases?