Could anyone point out what's wrong with the below line from a bash script I'm using?
if [ "$(( $(date +"%s")-$(stat -c "%Y" $SENDDIR/$NIGHTLY_FILE) ))" -gt "3600" ]; then
I receive the error noted in the subject line.
I had copied the script from one server to another thinking that it should work but alas, no.