Home > Syntax Error > Bash For Loop Syntax Error Near Unexpected Token

Bash For Loop Syntax Error Near Unexpected Token

Contents

how could I knew what was your intended use ? The bash just retrieves the data. more hot questions question feed lang-sh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Can Customs make me go back to return my electronic equipment or is it a scam? http://onlinetvsoftware.net/syntax-error/bash-for-loop-syntax-error-unexpected-end-of-file.php

true as jack suggested, or < /dev/null which is a bit lighter. Join them; it only takes a minute: Sign up Shell | syntax error near unexpected token `(' before for loop up vote 0 down vote favorite I have following code snippet Adopt A Jet/Book Intuition behind Harmonic Analysis in Analytic Number Theory In a GNU C macro envSet(name), what does (void) "" name mean? asked 4 years ago viewed 14620 times active 3 years ago Related 0Syntax error near unexpected token `done'3syntax error near unexpected token `('0Syntax error near unexpected token “(”, indirect expansion variable

Bash Syntax Error Near Unexpected Token Done'

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 Member Posts: 448 bash "while" loop [SOLVED] « on: December 11, 2014, 03:02:00 PM » Hi,I am finally starting to learn bash scripting, and am having a problem with the 'while' So sayeth the Shepherd What to tell to a rejected candidate?

Also, notice that you should quote your variables: wget --no-check-certificate --directory-prefix="${tempFolder}" "${i}" share|improve this answer edited Oct 28 '15 at 7:18 answered Oct 28 '15 at 6:54 chaos 27.4k65095 Browse other questions tagged bash shell-script newlines or ask your own question. What can I do now? Bash Syntax Error Near Unexpected Token Fi' GTIN validation My girlfriend has mentioned disowning her 14 y/o transgender daughter spectral norm of block-wise sums of matrices Is it possible to check for existence of member template just by

Please click the link in the confirmation email to activate your subscription. Bash Syntax Error Near Unexpected Token Echo' What does an 'ü' mean? share|improve this answer edited May 10 '12 at 16:32 answered May 10 '12 at 13:16 chepner 136k12119194 1 : is the correct no-op, but 'true' has been a builtin for How to increase the population growth of the human race My girlfriend has mentioned disowning her 14 y/o transgender daughter Is this safe to display MySQL query error in webpage if

shell-script share|improve this question edited Jan 2 '13 at 13:14 mtk 4,085164282 asked Jan 2 '13 at 12:19 UNIX Learner 612 1 some general comments: You probably want to quote Bash Syntax Error Near Unexpected Token Then' A simple visual puzzle to die for American English: are [ə] and [ʌ] different phonemes? Join them; it only takes a minute: Sign up bash for loop work in command line, but failed in script up vote 3 down vote favorite 1 When a run a Try with only -x to see where it first stops to make sense.

Bash Syntax Error Near Unexpected Token Echo'

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. 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 Bash Syntax Error Near Unexpected Token Done' Are you new to LinuxQuestions.org? Bash Syntax Error Near Unexpected Token (' Ubuntu Activate Hearthstone season chest cards?

Syntax... this content y/n; read yn; if [$yn = y]; then exit; fi; donebash: syntax error near unexpected token `done'Code: [Select]while true; do echo enough\? Join them; it only takes a minute: Sign up Confusing syntax error near unexpected token 'done' up vote 4 down vote favorite I am trying to learn shell scripting, so I You sometimes get this sort of problem when you do a binary ftp of an ascii file from one system to another, like from MS to Linux or Unix, or Mac Bash Syntax Error Near Unexpected Token Else'

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 EDIT As mentioned elsewhere on this page : is a better choice of no-op. shell share|improve this question asked Feb 21 at 13:36 Surili Jain 4 2 I think you mean for (( i=1; i<=$Count; i++)). –larsks Feb 21 at 13:41 2 Specify http://onlinetvsoftware.net/syntax-error/bash-for-syntax-error-near-unexpected-token.php Share your knowledge.

y/n; read yn; if [ $yn = y ]; then exit; fi; donespace after the opening square bracked and space before the closing square bracket.semicolon must be immediately after the while Bash Syntax Error Near Unexpected Token Do' Still learning bash... –9a3eedi Oct 28 '15 at 7:00 @9a3eedi Can you post that whole compound command, where you get the syntax error? –chaos Oct 28 '15 at 7:19 Least Common Multiple How to make different social classes look quite different?

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

The 'file' command should tell you what they are (if that command is available on the Unix you are on). Reply Log In to Comment 0 dinhhoangviet May 18, 2014 I copied and created new file with the code in example of the link: #!/bin/bash COUNTER=0 while [ $COUNTER -lt 10 Is there a good way to get from Levoča to Lviv? Bash Syntax Error Near Unexpected Token Newline' Browse other questions tagged shell-script or ask your own question.

Good luck. –shellter May 10 '12 at 13:14 5 A valid "no-op" command is : –glenn jackman May 10 '12 at 13:37 1 @glennjackman : yes, good point. Good luck to all. –shellter May 10 '12 at 13:42 | show 1 more comment up vote 3 down vote dash and bash are a bit brain-dead in this case, they How to map and sum a list fast? http://onlinetvsoftware.net/syntax-error/bash-script-syntax-error-near-unexpected-token.php Using Map to convert Feet + Inches to Inches in a List of Lists Yes, of course I'm an adult!

Based on your recommendation, I just opened a new file and rewrote the script with some of your advice, and it worked great. Please explain the local library system in London, England The Woz Monitor How does the pilot control the Dassault Rafale? 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 share|improve this answer answered May 10 '12 at 12:52 Douglas Leeder 36.9k562109 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google

Are there any 'smart' ejection seats? share|improve this answer answered May 10 '12 at 12:42 Ja͢ck 122k19154199 what do you mean by that? –fenerlitk May 10 '12 at 12:44 2 do true; done ... How to pluralize "State of the Union" without an additional noun? t x t . / \n \n \t \t e 0000220 c h o / h o m e / C F D _ F i [[email protected] ~]# See my lineend

Is 8:00 AM an unreasonable time to meet with my graduate students and post-doc? Learn about printf (search here on S.O. Yes, I'm sure. Yes, I'm sure.

This site is not affiliated with Linus Torvalds or The Open Group in any way. What type of sequences are escape sequences starting with "\033]" what is the difference between \twocolumn and \documentclass[twocolumn]{book} How would family relationships change if legal system uses collective punishment? You are currently viewing LQ as a guest.