Jump to content

unix "value too great for base" error

Featured Replies

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:

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.