On Sun, 26 Jun 2005, Peter Bako wrote: > #!/bin/sh > month=$1 > day=$2 > year=$3 > > dayscount=$(expr ($year - 1900) * 365) > echo $dayscount > exit > > This will generate a "syntax error: `$year' unexpected" error. I have tried > all sorts of variations and I am not getting it!!! HELP!!!
man sh says arithmetic expressions take double parens: dayscount=$((($year - 1900) * 365)) don't forget about leap years. -- And that's why we need security.

