[lug] bash script newbie

Rob Nagler nagler at bivio.net
Tue Oct 30 11:04:02 MST 2001


> NAME=$(date +"%x %r %Z")
> echo $NAME
> cat /home/taproot/htmtest > /home/taproot/$NAME

You need quotes around "/home/taproot/$NAME", because you
have spaces in your name.  You might consider using:

NAME=$(date +"%x-%r-%Z")

Rob



More information about the LUG mailing list