Phillip Susi <[EMAIL PROTECTED]> writes:
>cd (my directory) ; tar -cj *.csv uuencode | mailx -s Subject
>[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>, (Helmut Waitzmann) [EMAIL PROTECTED]
_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar