Home > Syntax Error > Bash While Loop Syntax Error

Bash While Loop Syntax Error

Contents

Is there a good way to get from Levoča to Lviv? How does Gandalf get informed of Bilbo's 111st birthday party? How to map and sum a list fast? Is the following extension of finite state automata studied? this contact form

How to increase the population growth of the human race A simple visual puzzle to die for Realism of a setting with several sapient anthropomorphic animal species more hot questions question Using Map to convert Feet + Inches to Inches in a List of Lists Unexpected parent process id in output Why write an entire bash script in functions? Processes" echo "4. What does the "Phi" sign stand for in musical notation?

Bash While No Error

I get this error ./fileexplorer: line 5: syntax error near unexpected token `done' ./fileexplorer: line 5: `done'` My code is this: #!/bin/bash ls -l $1 while : browse() done function browse() Please login or register. 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length News: RIP Tara Rain. Why does Windows show "This device can perform faster" notification if I connect it clumsily? Not the answer you're looking for?

Why are some programming languages Turing complete but lack some abilities of other languages? if [[$line = *sometext*]]; then Remove advertisements Sponsored Links giannicello View Public Profile Find all posts by giannicello #6 04-13-2009 sauron Registered User Join Date: Apr 2009 Last 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 Bash Syntax Error Near Unexpected Token Done' When I run this bash code: #!/bin/bash while true do ./pokecli.py echo ">pokecli exited...

How does Gandalf get informed of Bilbo's 111st birthday party? Bash While 1 100 Why don't most major game engines use gifs for animated textures? restarting..." done However, that being said-- none of that will cause an error. Maybe some good Samaritan will try to help you.

Does mean=mode imply a symmetric distribution? Bash Syntax Error Near Unexpected Token Else' Please click the link in the confirmation email to activate your subscription. Above we don't see the PS4 (xtrace) output. –Stéphane Chazelas Aug 24 '15 at 7:06 2 What does file test.sh say? Skeletal formula for carbon with two double bonds Modern soldiers carry axes instead of combat knives.

Bash While 1 100

Please help. Does mean=mode imply a symmetric distribution? Bash While No Error Network Connectivity" echo "3. Android Shell Script Syntax Error Do It looks like evn after dos2unix you have CR line endings. –muru Aug 24 '15 at 7:22 1 @Murat, just like Stephane mentioned, the problem seems to be in the

How to extrude a face parallel to another? weblink Hardware Utilization" echo "Which option do you require?" read menunumber case $menunumber in 1) echo "USER INFORMATION" echo "1. Share on Twitter Replace previous answer? Maybe get rid of the semicolon after done and see if that helps. –Juan Tomas Jul 26 at 13:41 Can reproduce this. Python While Loop Syntax Error

Unix & Linux Stack Exchange works best with JavaScript enabled UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. Last edited by vgersh99; 03-25-2009 at 03:58 PM.. Remove advertisements Sponsored Links warlock129 View Public Profile Find all posts by warlock129 #2 03-25-2009 vgersh99 Forum Disk Usage" echo "3. navigate here Join them; it only takes a minute: Sign up Bash while loop syntax error in do up vote 0 down vote favorite I´m trying do do a simple counter: max=100 count=1

Are you sure you want to replace the current answer with this one? Bash Syntax Error Near Unexpected Token Fi' What can I do now? Yes, I'm sure.

Skipping directly to level 4 How would family relationships change if legal system uses collective punishment?

bash while-loop share|improve this question edited Jun 11 '14 at 17:04 Zefnus 3,26431942 asked Oct 11 '12 at 13:33 AWE 1,12371734 1 see my post, need an extra space –Gilles Rosa Parks is a [symbol?] for the civil rights movement? Success! Bash Syntax Error Invalid Arithmetic Operator Share it with others to increase its visibility and to get it answered quickly.

I do not get any ether when mining American English: are [ə] and [ʌ] different phonemes? At first I didn't remember –DonCallisto May 28 '12 at 8:26 ok thanks DonCallisto –jarhead May 28 '12 at 8:27 add a comment| up vote -2 down vote I Skipping directly to level 4 What does an 'ü' mean? his comment is here Reply Log In to Comment Have another answer?

Also, you should start indenting nested commands and get your do on the same line as the while for readability. How could banks with multiple branches work in a world without quick communication? Well, it is called !learning the hard way!" Logged Print Pages: [1] Go Up « previous next » PCLinuxOS-Forums » Help » General » bash "while" loop [SOLVED] SMF 2.0.11 while [ $i -lt $p ] || [ $i -eq $p ]; do The less-than-or-equal operator is -le instead of doing two tests.

asked 1 year ago viewed 230 times active 1 year ago Related 0While loop in Shell2Shell command not asking for password inside while loop3For loop syntax bash script9Bash Tab Completion: '-bash: Last Logins" echo "Q.Quit" echo "Which option do you require?" read menunumber2 case $menunumber2 in 1) awk -F: '{print $1}' /etc/passwd echo "Hit the Enter Key to continue" read junk;; 2) Join them; it only takes a minute: Sign up Bash error: syntax error near unexpected token `done' up vote 0 down vote favorite I wrote a really simple file explorer using System Information" echo "5.

Do you have any idea about why I am getting this error in this while loop? This still won't run even with the semicolon. –Explosion Pills Oct 11 '12 at 13:38 @ExplosionPills I know semicolon is optional when there's a newline. Why did companions have such high social standing? Not the answer you're looking for?

To answer a question, use the “Answer” field below. Not the answer you're looking for? Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to Page... learn unix and linux commands While loop error: Unexpected token What to tell to a rejected candidate?

User Information" echo "2. Why can a Gnome grapple a Goliath? I'm having some trouble with this loop: get_install(){ while ((!${pkg}-finished)) do if [ "$CURNUM" -lt "$_MAXNUM" ]; then let CURNUM=$CURNUM+1 eval "aria2c -c -j ${_MAXNUM} -x ${_MAXNUM} -s ${_MAXNUM} \ -i asked 1 year ago viewed 3074 times active 1 year ago Related 1/shell-script: syntax error near unexpected token `done'0Shell script - syntax error near unexpected token `['2bash: syntax error near unexpected

Convince people not to share their password with trusted others Is it possible to check for existence of member template just by identifier? Force Microsoft Word to NEVER auto-capitalize the name of my company Is there a way to make a metal sword resistant to lava? Limit involving exponentials and arctangent without L'Hôpital Finding a file starting with '-' dash Realism of a setting with several sapient anthropomorphic animal species How could banks with multiple branches work I used a while loop to make the script run forever (until Ctrl+C), but the while loop doesn't seem to work.