Guest shocker147 Posted July 19, 2003 Posted July 19, 2003 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now