Subject: more csh and date
To: None <netbsd-help@netbsd.org>
From: john <jkaufman@home.com>
List: netbsd-help
Date: 01/23/2001 00:08:49
This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C084D0.A9095900
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi All:

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. I also tried
@ month =3D 'date +%m'
this did not work. I know I have left the back ticks
out off the +%m portion, but it did work at the command
promp
date +%m
It did return 01

I am discovering the wonderful world of csh. I will give
the ksh a try.

Thanks for the reply
John

------=_NextPart_000_000D_01C084D0.A9095900
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi All:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>When I enter </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>date '+%m' at the command line, it =
returns=20
01.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This is exactly what I expect. I have =
tried=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>set month =3D 'date +%m' </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>in my script. It did not work. I also=20
tried</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>@ month =3D 'date +%m'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this did not work. I know I have left =
the back=20
ticks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>out off the +%m portion, but it did =
work at the=20
command</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>promp</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>date +%m</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>It did return 01</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am discovering the wonderful world of =
csh. I will=20
give</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the&nbsp;ksh a try.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the reply</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>John</FONT></DIV></BODY></HTML>

------=_NextPart_000_000D_01C084D0.A9095900--