[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] tar and gzip
From: |
Helmut Waitzmann |
Subject: |
Re: [Bug-tar] tar and gzip |
Date: |
Fri, 17 Mar 2006 19:31:57 +0100 |
User-agent: |
Mutt/1.5.9i |
Phillip Susi <address@hidden> writes:
>cd (my directory) ; tar -cj *.csv uuencode | mailx -s Subject
>address@hidden
Even better is to explicit specify standard output as tape archive ('-f
-'). If you don't specify which tape archive to use, tar will use a
'compilation dependent default' (quoting the manual), which may be some
different file than standard output (for example a tape device).
And it is always good to mark the end of options ('--'), as there might
exist csv-files which names start with two dashes,
e.g. '--file=file.csv'.
cd my_directory && \
tar -cj -f - -- *.csv | uuencode file.tar.bz2 | mailx -s Subject
Or, if you want to use gzip rather than bzip2:
cd my_directory && \
env 'GZIP=--best' tar -cz -f - -- *.csv | uuencode file.tar.gz | \
mailx -s Subject
--
Wenn Sie mir E-Mail schreiben, stellen | When writing me e-mail, please
Sie bitte vor meine E-Mail-Adresse | precede my e-mail address with
meinen Vor- und Nachnamen, etwa so: | my full name, like
Helmut Waitzmann <address@hidden>, (Helmut Waitzmann) address@hidden