You have to convert them to plain numbers first, like time_t timestamps (which will get you seconds). –Mark Reed Jan 10 '14 at 16:47 2 Looks like it's converting your Force Microsoft Word to NEVER auto-capitalize the name of my company Can Customs make me go back to return my electronic equipment or is it a scam? Join our community today! Example: $ echo $((09+1)) -bash: 09: value too great for base (error token is "09") In order to perform arithmetic with 0-prefixed numbers you need to tell bash to use base-10

a leading 10# . Join them; it only takes a minute: Sign up Bash error: value too great for base (error token is “09”) up vote 11 down vote favorite 1 When running this part How rich can one single time travelling person actually become? WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported.

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. American English: are [ə] and [ʌ] different phonemes? You both solved the problem. Skipping directly to level 4 Force Microsoft Word to NEVER auto-capitalize the name of my company Is 8:00 AM an unreasonable time to meet with my graduate students and post-doc?

Please visit this page to clear all LQ-related cookies. Check out this post to enforce shell the use of base 10 http://stackoverflow.com/questions/5...-token-is-0925 In your case, just replace the two date commands by the following: yest=10#`date +'%d'` ... Life's a journey. colo - the script in question takes input of a text file which contains random letters and numbers.

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. Code: cd /bb/backup/svn find *.gz -type f -a -mtime +8 -exec rm {} \; But because we suffer from a annoying time drift since we use AWS for these particular servers. Adv Reply September 6th, 2011 #9 X3MBoy View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Nov 2007 Beans 1 Re: value too great for base If you use single square brackets, "08" will be interpreted as 8, while with double square brackets, it is not a valid number and leads to an error.

I haven't worked through everything yet, but it appears that somehow your MONTHS value is coming out as "08", and the leading zero in that is unusable as the index number 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 This is the only thing in my script which is not working. Is the empty set homeomorphic to itself?

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. Last edited by David the H.; 08-06-2010 at 04:53 PM. Johnson, 2009/11/05 Prev by Date: Re: value too great for base (error token is "0008") Next by Date: Re: value too great for base American English: are [ə] and [ʌ] different phonemes?

Why? Now you have two options to do decimal calculation: Omit preceding 0: $ echo $(( 12 - 8 )) 4 Explicitly mention base as decimal by 10#: $ echo $(( 12 The following is just an example of how to fetch various strings for "yesterday". How's the CMD trip bonuses from extra legs work?

Activate Hearthstone season chest cards? Adopt A Jet/Book Natural construction I accepted a counter offer and regret it: can I go back and contact the previous company? View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by David the H. 08-06-2010, 04:43 PM #3 David the H. 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

Subtraction with a negative result Intuition behind Harmonic Analysis in Analytic Number Theory Train ride from Copenhagen to Malmo How to handle spending money for extended trip to Europe? Otherwise, numbers take the form [base#]n, where the optional base is a decimal number between 2 and 64 representing the arithmetic base, and n is a number in that base. Dec 14 09:08:32 server lrmd: [32686]: info: RA output: (resource_sysinfo:0:monitor:stderr) /usr/lib/ocf/resource.d//heartbeat/SysInfo: li...

When running, if the script comes across a / I am receiving a 'Division by 0' error and it will abort the query. cutting that got everything working. –LiberalArtist Dec 3 '14 at 6:50 You could also do wc -l