On Sun, 10 May 1998, Igmar Palsenberg wrote:
> >> I want to add a directory yo a zip file, but the name of the zip file
> >> must the day before the current day.
> >>
> >> Thus, a file must be create with the following name 05-10-98.zip
> >>
>
> >zip -r $(date --date 'yesterday' '+%m-%d-%y.zip') your_dir
>
>
> I was very close.... But what does the $ mean ???
>
The $(...) syntax is (almost) equivalent to `...`,
just more intuitive in my opinion. The back-quotes
seem to get lost in complex statements.
--
John Darrah (u05192) | Dept: N/C Programming
Giddens Industries |
PO box 3190 | Ph: (206) 767-4212 #229
Everett WA 98203 | Fx: (206) 764-9639
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.