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:52:38 +0100
  • Message-id: <45ACCA96.5050503@xxxxxxxxxxxx>
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



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

< Previous Next >
Follow Ups
References