Jump to content

unix "value too great for base" error


Guest shocker147

Recommended Posts

Guest shocker147

Hi

 

I've been working on a shell script to calculate julian dates in the remaining days of this year as well as all of 2004.

 

This is the line I wrote to calculate such:

 

let remain="((365-$tdate)-$jdate)"

echo $remain days remain until $fdate

 

tdate is today's julian date

fdate is future date mm/dd/yy

jdate is future date's julian value

 

Everything runs well except for a few dates when $jdate's value is between 78 (March 18) and 99 (April 8).

 

let: days=078: value too great for base (error token is 78).

 

What do I need to do to correct this? I've tried numerous other ways, but to no avail. Thanks :cool:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.