Bin/sh 1 Syntax Error Unexpected Expecting
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might
Bin Sh C Line 1 Syntax Error Unexpected End Of File
have Meta Discuss the workings and policies of this site About syntax error unexpected expecting keyword_end Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Syntax Error Unexpected Expecting End Syntaxerror
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million ruby syntax error unexpected expecting programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Syntax error: “(” unexpected (expecting “done”) [duplicate] up vote 2 down vote favorite 1 This question already has an answer here: I am getting error “array.sh: 3: array.sh: Syntax error: ”(“ unexpected” 3 answers I have a very simple syntax error word unexpected (expecting ) ) shell script shell script which I'm using to loop through directories, and call another shell script. I wrote it on my local machine (OSX running bash 3.2), and am using it on a remote server running bash 4.2. On the server, when I type which bash, I get /bin/bash, so I added the line on top. I still get this error, pointing to the line that begins arrIN=... 8: run_all_verification.sh: Syntax error: "(" unexpected (expecting "done") The shell script: #!/usr/bin/bash #base name for all experiments BASE_EXP_ID=$1; for i in ${BASE_EXP_ID}* do #split file name by "__" arrIN=(${i//__/ }); EXP_ID=${arrIN[0]} NUM_FEATURES=${arrIN[1]} echo "${EXP_ID} ${NUM_FEATURES}" sh run_verification.sh ${EXP_ID} ${NUM_FEATURES} done bash shell share|improve this question asked Mar 26 '15 at 19:43 Adam_G 1,17652454 marked as duplicate by tripleeebash Users with the bash badge can single-handedly close bash questions as duplicates and reopen them as needed. Dec 14 '15 at 8:32 This question has been asked before and already has an answer. If those answers do not fully a
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Line 1 Syntax Error Word Unexpected Expecting
and policies of this site About Us Learn more about Stack Overflow syntax error unexpected in shell script the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
Syntax Error Word Unexpected (expecting ) ) Ubuntu
Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it http://stackoverflow.com/questions/29287474/syntax-error-unexpected-expecting-done only takes a minute: Sign up Syntax error: word unexpected (expecting “)”) up vote 1 down vote favorite Problem in short- In linux whenever we get the following error "Syntax error: word unexpected (expecting ")")", what does it generally mean? Problem in details- I have been trying to cross-compile Qt-4.6 as per Sourcery tool chain on Ubuntu 10.04. I followed the http://stackoverflow.com/questions/36725864/syntax-error-word-unexpected-expecting exact steps mentioned at the link compiling Qt-4.6. But I get the following error right in the ./configure step - /home/weds/qt-everywhere-opensource-src-4.6.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")") Searching in internet I found lots of posts regarding this error. Read all of them. But still clueless as to What this error is and How to solve it. I would be glad if someone would help me in understanding this error. P.S 1- Sourcery toolchain is present inside /opt/ folder and my PATH variable is correctly pointing to it. P.S 2- This toolchain was not installed manually by me. Rather it was provided by a vendor as a .tgz file which I extracted inside /opt/ folder. arm qt4 share|improve this question asked Apr 19 at 13:53 satya prakash Panigrahi 813 migrated from unix.stackexchange.com Apr 19 at 17:50 This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems. add a comment| 3 Answers 3 active oldest votes up vote 1 down vote accepted An answer to this seems to be posted in the instructions to
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social https://ubuntuforums.org/showthread.php?t=1703355 Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/line-1-syntax-error-word-unexpected-expecting-898733/ General Help [SOLVED] SH SCRIPT Syntax error: "else" unexpected (expecting "then") Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks syntax error ! Results 1 to 8 of 8 Thread: SH SCRIPT Syntax error: "else" unexpected (expecting "then") Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode March 9th, 2011 #1 adrenalin6 View Profile View Forum Posts Private Message Spilled the Beans Join Date Oct 2009 Beans 17 SH SCRIPT Syntax error: "else" unexpected (expecting "then") BTW, yes I did search for a solution but syntax error unexpected the only one I found said this error happened if I had an if statement on the same lines as "then". Can you guys help me out? Here is a part of my script, Code: if [ -f file1.jar ]; then echo "Found: file 1.jar" else echo "file1.jar: Missing " Down if [ -f file2.zip ]; then echo "Found: file2.zip" else echo "file2.zip: Missing " Down if [ -f file3.sh ]; then echo Found: file3.sh else echo file.sh: Missing Down There alot more and "Down" was defined as a function Down() ( echo "my script is a type of installing script if you needed to know," echo "it Identifies files if there present, if not downloads them and moves them into a java game." echo "I get a syntaz error on line 22 which is the else after found: file 1 echo" echo "I also have #!/bin/sh at the top, I didnt copy it in" ) Can you help me out? Last edited by adrenalin6; March 9th, 2011 at 01:28 PM. Reason: Removed Spaces from previously tried fix Adv Reply March 9th, 2011 #2 Vaphell View Profile View Forum Posts Private Message Ubuntu addict and loving it Join Date Jul 2007 Location Poland Beans 4,499 DistroUbuntu 14.04 Trusty Tahr Re: SH SCRIPT Syntax error: "else" unexpected (expecting "then")
Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer [SOLVED] line 1: syntax error: word unexpected (expecting ")") User Name Remember Me? Password Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? 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. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. 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. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 08-22-2011, 05:52 AM #1 me011089 LQ Newbie Registered: Jun 2011 Posts: 16 Rep: line 1: syntax error: word unexpected (expecting ")") Hi,I was working with beagle board and showed line 1: syn