> #! /bin/sh
>
> # Backup entire 'myfiles/' directory, name it with the date.
>
> cd /usr/local/
> tar -czf /mnt/archive/autoarchive/date myfiles

man bash(1):
<quote>
Command substitution allows the output of a command to replace the command 
name.  There are two forms:
              $(command)
       or
              `command`
</quote>

So your command goes:
tar -czf /mnt/archive/autoarchive/`date` myfiles

greetings,
  Johannes

-- 
"More than machinery we need humanity" -- Charlie Chaplin, The Great 
Dictator


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to