Home > Syntax Error > Syntax Error Near Unexpected Token Fi' Elif

Syntax Error Near Unexpected Token Fi' Elif

Contents

I got another error when doing that. Help yourself: Ubuntu Docs - Ubuntu Packages Adv Reply November 5th, 2011 #5 ofnuts View Profile View Forum Posts Private Message Ubuntu addict and loving it Join Date Aug 2011 Are there too few Supernova Remnants to support the Milky Way being billions of years old? druuna's advice is correct. http://allconverter.net/syntax-error/syntax-error-near-unexpected-token-elif.html

My favorite command for this: most -b script.sh –hyde Sep 11 '13 at 13:12 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote The garbled error options2 = "Current Different Back" select choice2 in $options2; do if [ "$choice2" = "Current" ]; then echo Ok, the files in this directory are... options2 = "Current Different Back" select choice2 in $options2; do if [ "$choice2" = "Current" ]; then echo Ok, the files in this directory are... Ubuntu Logo, Ubuntu and Canonical Canonical Ltd.

Syntax Error Near Unexpected Token Elif' Bash

Python tutorial |Unix power tools|Effective AWK|A handful of Awk|Perl|File Renamer|Bash ref Adv Reply March 6th, 2009 #5 Squigy Dunkens View Profile View Forum Posts Private Message 5 Cups of Ubuntu This is explained here. How should I tell my employer?

asked 2 years ago viewed 45487 times active 2 years ago Related 1bash - syntax error near unexpected token `<'4Confusing syntax error near unexpected token 'done'2Bash syntax error when commented out umm, i think i need another hint... I think 61 might be the problem. +1 Adv Reply November 6th, 2011 #6 Deadlyhugs View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Nov 2011 Syntax Error Near Unexpected Token `elif' In Unix Deep theorem with trivial proof Rebus: Guess this movie Why does Snoke not cover his face?

Join them; it only takes a minute: Sign up Syntax error near unexpected token 'fi' up vote 21 down vote favorite 2 I'm trying to write a script that removes all Syntax Error Near Unexpected Token Fi' Shell Script Not the answer you're looking for? share|improve this answer answered Aug 22 '13 at 12:03 val0x00ff 3,9071824 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign bash share|improve this question asked Dec 14 '13 at 18:33 Calvin Koder 1661210 add a comment| 4 Answers 4 active oldest votes up vote 26 down vote accepted As well as

ls elif [ "$choice2" = "Different" ]; then read -p "Ok, which directory do you want to list the files of? " directory; echo Ok, the files in $directory are... Syntax Error Near Unexpected Token Else In Shell Script Press any key to continue... Lagrange multiplier on unit sphere Is it a coincidence that the first 4 bytes of a PGP/GPG file are ellipsis, smile, female sign and a heart? Join them; it only takes a minute: Sign up How can I fix shell error “syntax error near unexpected token 'elif'” up vote 2 down vote favorite I have this run

Syntax Error Near Unexpected Token Fi' Shell Script

Is there any financial benefit to being paid bi-weekly over monthly? 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 Syntax Error Near Unexpected Token Elif' Bash Will a tourist have any trouble getting money from an ATM India because of demonetization? Syntax Error Near Unexpected Token Elif' In Linux Will majority of population dismiss a video of fight between two supernatural beings?

options = "ListFiles Make/EditFile Quit" select choice in $options; do if [ "$choice" = "ListFiles" ]; then echo Would you like to list the files of the current directory, or a this content Keywords (or commands) begin statements, and before a new statement on the same line begins, the old one must terminate. 0 members found this post helpful. This site is not affiliated with Linus Torvalds or The Open Group in any way. LinuxQuestions.org > Forums > Non-*NIX Forums > Programming [SOLVED] bash: syntax error near unexpected token `else' User Name Remember Me? Syntax Error Near Unexpected Token Fi Mac

Unable to complete a task at work. An expensive jump with GCC 5.4.0 how to match everything between a string and before next space How to decrypt .lock files from ransomeware on Windows Removing brace from the left if [ -f "$PROJECT_DIR/build/Release-macosx/UnicodeEscape" ] ; then build/Release-macosx/UnicodeEscape "en.lproj/Localizable.strings" ; elif [ -f "$PROJECT_DIR/build/Debug-macosx/UnicodeEscape" ] ; then build/Debug-macosx/UnicodeEscape "en.lproj/Localizable.strings" ; fi share|improve this answer edited Oct 1 '10 at 15:08 answered weblink What is your name? " name; function tehstart { echo What would you like to do today?

Not the answer you're looking for? Syntax Error Elif Unexpected Expecting Then User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. Any help will be appreciated.

I also searched this forum.

We are at our wits end with this and everyone else seems to have no problems. Adv Reply March 6th, 2009 #10 Squigy Dunkens View Profile View Forum Posts Private Message 5 Cups of Ubuntu Join Date Mar 2009 Beans 27 Re: Bash - syntax error 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 If Elif Bash Adv Reply March 6th, 2009 #6 Squigy Dunkens View Profile View Forum Posts Private Message 5 Cups of Ubuntu Join Date Mar 2009 Beans 27 Re: Bash - syntax error

What mechanical effects would the common cold have? Use http://mywiki.wooledge.org/BashGuide instead. 1 members found this post helpful. The time now is 11:20 PM. - Contact Us - UNIX & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top http://allconverter.net/syntax-error/syntax-error-near-unexpected-token-in.html Square root image filter tool in Python Removing brace from the left of dcases Aligning texts side by side with equations in \align environment What are the ground and flight requirements

What is your name? " name; function tehstart { echo What would you like to do today? The reason for space before the ] is similar. This happened because I was working from Windows. Not the answer you're looking for?

This file format (ff) set command tells vi to use LF-only line endings when the file is saved. When I create a script then manually add the CR characters, I get exactly the same error: qq.sh: line 3: syntax error near unexpected token `elif' 'q.sh: line 3: `elif [