Re: How do I do this in bash ??
> #! /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
Reply to: