Scripting (was Re: Cron job for backup)

2007-12-11 Thread Matrix Mole
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 der.hans wrote: > Am 11. Dec, 2007 schwätzte Patrick Fleming, EA so: > >> BACKUPDIRNAME=`date +Y%m%d%` #these are backtics - > > Use $( ) format for bash and ksh scripts :). > > BACKUPDIRNAME=$( date +Y%m%d% ) I've heard this a couple times now, b

Re: Scripting (was Re: Cron job for backup)

2007-12-11 Thread der.hans
Am 11. Dec, 2007 schwätzte Matrix Mole so: der.hans wrote: Am 11. Dec, 2007 schwätzte Patrick Fleming, EA so: BACKUPDIRNAME=`date +Y%m%d%` #these are backtics - Use $( ) format for bash and ksh scripts :). BACKUPDIRNAME=$( date +Y%m%d% ) I've heard this a couple times now, but never had

Re: Scripting (was Re: Cron job for backup)

2007-12-11 Thread Lynn Newton
> > I've heard this a couple times now, but never had anyone explain why the > > $( ) format is preferred over the back quote in bash scripts. I have > > begun to try remembering to use the $( ) format in my scripts now, but I > > still find myself using back quotes quite often. So why is back quot