I coded this shell script
#!/bin/bash
VAR1=`awk -F"#" '/futuro/ { print $1 }' config.conf`
HOST="www.odds.com/matches/soccer/"
ONEDAY=86400
TODAYN=`date +%s`
VAR2= expr $VAR1 \\* $ONEDAY
TODAY=`date -d @$(($TODAYN + $VAR2)) +%Y%m%d`
TOMORROW=`date -d @$(($TODAYN + $ONEDAY)) +%Y%m%d`
FULLTODAY=$HOST$TODAY"/"
FULLTOMORROW=$HOST$TOMORROW"/"
… some other stuff
but when I try to execute it, I get this error
riga 8: 1314967172 + : errore di sintassi: atteso un operando (il token di errore è “+ “)
where is the error?
Change
to
But, you should be able to say this instead: