On 1119834512 seconds since the Beginning of the UNIX epoch
"Peter Bako" wrote:
>

>dayscount=$(expr ($year - 1900) * 365)
>echo $dayscount
>exit

Parenthesis are shell reserved words and hence must be quoted if they
are to be passed as arguments to a command, in this case expr.  Also,
the * is a globbing character, so it must also be quoted.

Try:

        expr \( $year - 1900 \) \* 365

To stop the shell from giving special interpretation to the (, ) and *.

--
    Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/

Reply via email to