Subject: Re: shell script
To: None <port-mac68k@netbsd.org>
From: Franz Urbanski <fou@ON-Luebeck.DE>
List: port-mac68k
Date: 03/03/2000 17:41:44
On Fri, Mar 03, 2000 at 11:14:50AM -0500, Jean-Francois Fortier wrote:
> 
>     Excuse me , I know it's not mac68k specific question... I just want
> to know if  it's possible to redirect the output of a command in a
> variable in a csh script ? I read all the csh man page and I'm still
> stuck...
> 
> date | awk {'print 1$'} |   ???? to put it in a variable .

How about

	setenv x "`date +%w`"

Well, if you insist in awk, you might also use:

	setenv x "`date|awk '{print $1}'`"



cu

Franz