Mailinglist Archive: opensuse (4626 mails)

< Previous Next >
Re: [opensuse] Bash programming
  • From: Ulf Rasch <list-suse-linux-e@xxxxxxxxxxxx>
  • Date: Tue, 16 Jan 2007 13:54:33 +0100
  • Message-id: <45ACCB09.2040404@xxxxxxxxxxxx>
Ulf Rasch wrote:
John Meyer wrote:
I've started with the following script:

myfilename = $(date +%m%d%y) + ".tar.gz"
echo $myfilename

It is giving me this error: ./backupfiles.sh: line 1: myfilename:
command not found. I know I'm doing something wrong here, just can't
figure out what.

Try

TODAY=`date '+%Y%m%d'`
myfilename=$TODAY.tar.gz

echo $MYFILENAME

dooooh

echo $myfilename

of course

Ulf Rasch
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References