On Mon, 19 Aug 2002, Richard Seymour wrote: > But what if the 1 in the above statement is itself a variable? > > Y=1 > X=$(date --date='+ $Y week' +%m) You need to use double quotes instead of single (noninterpolating) quotes around "+ $Y week". --Paul Heinlein <heinlein at attbi.com>