> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Bill Banks
> Sent: 14 November 2007 17:25
> To: FreeBSD Questions
> Subject: Re: shell programming
> 
> What am I doing wrough here:
> 
> #!/bin/sh
>  $DAYN='/bin/date +%a' + "_master.sql"
>  mysqldump master > $DAYN

Your quotes should be backticks not single quotes.
Also drop the $ from before the variable name when assigning.

#!/bin/sh
DAYN=`/bin/date +%a`
DAYN="${DAYN}_master.sql"

 -  barry 

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to