Home > Syntax Error > Bash Bc Standard_in 1 Syntax Error

Bash Bc Standard_in 1 Syntax Error

Contents

Problem with using pause and onslide in one frame A simple visual puzzle to die for Symbolic comparison of recursive functions Good way to explain fundamental theorem of arithmetic? 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. is 0 NUM is 1.0000000000000000000000000 another way is to use awk NUM=$(awk -vinput="$1" 'BEGIN{printf "%.25f", input/10 }') echo "\$? Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ Check This Out

That is fixing this does not fix the parsing error. The parse error is due to the $randno3 typo. –Etan Reisner Nov 26 '14 at 0:19 add a comment| Your Answer draft saved draft discarded Sign up or log in Join our community today! Is there a good way to get from Levoča to Lviv?

Bash Syntax Error Near Unexpected Token Done'

Hard to say while we cannot see your script and without knowing what it is supposed to do... –krisFR Apr 20 '15 at 12:04 Thanks for the replies! Please explain the local library system in London, England How to deal with a really persuasive character? LinuxQuestions.org > Forums > Non-*NIX Forums > Programming [SOLVED] Bash subtract negative number using bc User Name Remember Me?

Why does Windows show "This device can perform faster" notification if I connect it clumsily? Does one of your CSV files have spaces or odd characters in its name? Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. Bash Syntax Error Near Unexpected Token Then' Join them; it only takes a minute: Sign up bc (standard_in) 1: syntax error up vote 1 down vote favorite I am trying to find the location of myfunc in the

Share a link to this question via email, Google+, Twitter, or Facebook. Bash Syntax Error Near Unexpected Token Else' So this line "for temp in $input" Is the same a "for temp in "input.file" which will only execute once with $input being the string "input.file". Browse other questions tagged grep echo bc or ask your own question. Train ride from Copenhagen to Malmo Video displays in Star Wars Is there a way to make a metal sword resistant to lava?

This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. Bash Syntax Error Near Unexpected Token Do' How to indicate you are going straight? The next would be to check for reserved wods or commands. On THE other hand or on another hand?

Bash Syntax Error Near Unexpected Token Else'

So sayeth the Shepherd What to tell to a rejected candidate? OTOH there are situations where it is wrong not to have a space such as bash' [[ ]] not [[]] and bc as you have found out. Bash Syntax Error Near Unexpected Token Done' F=$(echo "scale=0; 32+(1.8*${temp_c})" | bc) timmay9162 View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by timmay9162 04-24-2006, 04:41 PM #7 Dark_Helmet Senior Bash Syntax Error Near Unexpected Token Fi' Sorry, I should have been more explicit. –LandonSchropp Feb 25 '10 at 6:48 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using

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 his comment is here Having a problem logging in? Finding a file starting with '-' dash A simple visual puzzle to die for How to handle spending money for extended trip to Europe? This site is not affiliated with Linus Torvalds or The Open Group in any way. Bash Syntax Error Invalid Arithmetic Operator

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 Using the name "readings" or "temperatures" or "temps" for the variable might be better also. If you need to reset your password, click here. this contact form Yes, of course I'm an adult!

Thanks Tim timmay9162 View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by timmay9162 04-26-2006, 02:32 AM #9 jschiwal LQ Guru Registered: Bash Syntax Error Near Unexpected Token Newline' For example: 1 input.file 8 input.file 22 input.file And if the command result is empty, then the expression to bc isn't syntactically correct. C=`cat $input | grep $temp | cut -f1` This would expand to C=`cat "input.file" | grep "input.file" | cut -f1` You are assigning C to the output of a piped command

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

What's its output? grep echo bc share|improve this question edited Oct 14 '14 at 19:46 HalosGhost 3,01261733 asked Oct 14 '14 at 19:29 Suryakalpo Sarker 11 1 Please enable debugging by adding -x 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 Unexpected End Of File porphyry5 View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by porphyry5 05-15-2011, 09:33 AM #9 Telengard Member Registered: Apr 2007 Location: USA

Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. asked 6 years ago viewed 17155 times active 2 years ago Get the weekly newsletter! It works now and I also learned something :) –Landapanda Apr 20 '15 at 14:52 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign http://sovidi.com/syntax-error/bash-if-syntax-error.php How to indicate you are going straight?

Did Donald Trump call Alicia Machado "Miss Piggy" and "Miss Housekeeping"? Can filling up a 75 gallon water heater tank without opening a faucet cause damage? If you need to reset your password, click here. Browse other questions tagged linux bash shell or ask your own question.