[Cialug] shell script error

Bryan Baker ka_klick at mac.com
Fri Aug 26 14:08:08 CDT 2005


Just beat me to the punch :-)
I had just copied this line out of one of my shell scripts as a sample 
using date:

CURRENT_DOW=$(date "+%w")


On Aug 26, 2005, at 2:06 PM, Paul Gray wrote:
> On Fri, Aug 26, 2005 at 02:03:47PM -0500, Chris Hettinger wrote:
>> #!/bin/sh
>>
>> TODAY=date +%Y%m%d
>
> You need back tics or $(shell ) in the above line.
>
> -- 
> Paul Gray                                         -o)
> 323 Wright Hall                                   /\\
> University of Northern Iowa                      _\_V
> Message void if penguin violated ...  Don't mess with the penguin
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
--
Bryan Baker
Technology Advocate
Iowa Legal Aid
Suite 230
1111 9th Street
Des Moines, Ia 50314-2527

(515) 243-2151 (x1635)

http://www.iowalegalaid.org
bbaker at iowalaw.org



More information about the Cialug mailing list