Hellooo! I have the following sentence, that works on Linux, but not in Solaris Version.
YEAR=2019
echo $(expr '(' $(date -d $YEAR/9/30 +%s) - $(date +%s) + 86399 ')' / 86400) " days until deadline" the error is due to the date
Error that appears:
command date: illegal option -- d usage: date [-u] mmddHHMM[[cc]yy][.SS] date [-u] [+format] date -a [-]sss[.fff]
Any ideas?
Thank you very much