Subject: Re: more csh and date
To: john <jkaufman@home.com>
From: Peter Seebach <seebs@plethora.net>
List: netbsd-help
Date: 01/23/2001 09:56:29
In message <001001c08502$f43ad8e0$41634718@ssdt1.sk.wave.home.com>, "john" writ
es:
>When I enter=20
>date '+%m' at the command line, it returns 01.
>This is exactly what I expect. I have tried=20
>set month =3D 'date +%m'=20
>in my script. It did not work.

Yes.  As said, use backticks.  `, not '.  When you use "'", you
are saying "exactly this, change nothing".  When you use "`", you are
saying "the output of running this".

-s