Home > Syntax Error > Bin/sh Syntax Error Word Unexpected Expecting

Bin/sh Syntax Error Word Unexpected Expecting

Contents

P.S 2- This toolchain was not installed manually by me. Just for curiosity: Do you really need root privileges to delete the files? (Is the use of "sudo" necessary, it seems strange, and dangerous). Thanks for the explanation it's helped a lot and will be very useful to know in the future too. –kemra102 Aug 18 '12 at 12:25 Let me add that How would family relationships change if legal system uses collective punishment? check over here

See 'Code Complete' by Steve McConnell 2nd Ed. 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 Its very unfortunate that ppl did not tell what actually is the problem. In either bash or ksh93, simply assigning it is enough: Code: lyrics=( $( tr '\n' ' ' < _open.txt ) ) Note that you do not need tr; the shell will

Bin Sh 1 Syntax Error Unexpected

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. Having a problem logging in? If you need to reset your password, click here.

Unless this is a massive system operation running in an environment where you need to limit process resource usage as much as possible, code obfuscation in an attempt to gain performance Search this Thread 10-06-2011, 02:58 AM #1 manojrb18 LQ Newbie Registered: Oct 2011 Posts: 2 Rep: /bin/sh: Syntax error: "(" unexpected Hi, I am getting below error while building UNIX is a registered trademark of The Open Group. Syntax Error Word Unexpected (expecting ) ) Ubuntu On THE other hand or on another hand?

What does an 'ü' mean? Line 1 Syntax Error Word Unexpected Expecting Was Donald Trump's father a member of the KKK? The code is as follows: path="/home/directory/Reports" echo "The reports older than one day are getting deleted..." for i in `find $path/*.xls -mtime +1 -print` do echo "File $i is deleted" sudo Don't have hard-tabs (or spaces) leading before an ifeq or Makefile statement.

But you could indent 4 spaces or something like that. –MadScientist Apr 20 at 21:51 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign Syntax Error Word Unexpected (expecting ) ) Android 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 up vote 5 down vote favorite 2 PLATFORM = x86 CUD = cuda X86 = x86 PAN = panda ARM = arm app: ifeq($(PLATFORM),$(CUD)) CC = dum3 endif ifeq($(PLATFORM), $(X86)) CC There is a concept: self-documenting code.

Line 1 Syntax Error Word Unexpected Expecting

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). If we have two functions that have composition differentiable does it mean both are differentiable? Bin Sh 1 Syntax Error Unexpected That's not right; ifeq is a make command. (Almost) all lines with TAB characters as the first character on the line in a makefile is passed to the shell. Syntax Error Word Unexpected (expecting Do ) share|improve this answer answered Jan 20 '14 at 5:43 MadScientist 26.7k32238 1 Thanks MadScientist it really helped........... –Chirag Parekh Jan 20 '14 at 11:51 I just encountered this.

This site is not affiliated with Linus Torvalds or The Open Group in any way. check my blog current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. You signed out in another tab or window. Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Syntax Error Word Unexpected (expecting ) ) Shell Script

Ubuntu Logo, Ubuntu and Canonical Canonical Ltd. anyways, Thanks for your help! If this is the cause of your problem, you can fix it by simply running the start-dfs.sh program directly, or by explicitly running it under bash with "bash $HADOOP_INSTALL/sbin/start-dfs.sh", or by this content The time now is 05:05 AM.

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 Python Syntax Error: Word Unexpected (expecting ")") Password Home Search Forums Register Forum RulesMan PagesUnix Commands Linux Commands FAQ Members Today's Posts Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK Uniform convergence of sequence of function necessary for switching limits When was this language released?

I had read this comment but somehow had assumed that it was a PATH error, so ignored it.

asked 2 years ago viewed 9676 times active 2 years ago Related 7Syntax error : end of file unexpected (expecting “fi”)202gcc makefile error: “No rule to make target …”104Make error: missing Results 1 to 6 of 6 Thread: Syntax error: word unexpected (expecting "do") Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to So this is the same as the above: Code: lyrics=( $( < _open.txt ) ) Quote: If you are using bash or ksh this will work. Emulator Syntax Error Word Unexpected Expecting Harder to read code is harder to maintain.

Hide Permalink madhavi alla added a comment - 30/Jan/14 18:43 Hi, Everyone I have installed hadoop0.23.10 latest version >> sh hadoop-daemon.sh unable to start namenode .sbin/../libexec/hadoop-config.sh: Syntax error: word unexpected (expecting Join our community today! I changed the user name and re-executed the same script and this time it worked fine! have a peek at these guys Already have an account?

Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You should move the app: target after the ifeq blocks to just before the use of $(CC) (and ensure the $(CC) ... ksh limits the number of elements in an array to 1023. Adding the shebang line solved it immediately. +1. –bkd.online Oct 9 '13 at 5:14 Facing the issue running sonarqube.sh on Ubuntu 15.10.

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 If this is the cause of your problem, you can fix it by simply running the start-dfs.sh program directly, or by explicitly running it under bash with "bash $HADOOP_INSTALL/sbin/start-dfs.sh", or by Noun for people/employees/coworkers who tend to say "it's not my job" when asked to do something slightly beyond their norm?

© Copyright 2017 gatoisland.com. All rights reserved.