On Fri, May 28, 1999 at 09:14:51PM -0500, Yasin A. Vohra wrote:
| use tar -xvf *.tar
That's about as wrong as you can get. Did you actually read the
original question?
Also, be VERY careful of using *'s like that. It's not so bad with
-xvf, but if you did the command :
tar -cvf *.tar
what it did would depend on how many .tar files you had in the current
directory -
0 - depending on your shell and your tar, it would either do nothing,
or create an empty file called `*.tar'.
1 - depending on your tar, it would either do nothing (late GNU tars will
say `cowardly refusing to create an empty archive') or overwrite
that single .tar file with an empty tar file.
2+ - it would happily tar up tar file #2 and later and overwrite tar
file #1.
In short, when always give a file to write when you use the -f flag,
otherwise it may overwrite something that you were trying to save.
...
| > | Hi folks - I'm trying to create a tar of a directory tree,
| > | excluding all files with a *.bz2 extension. I've tried "--exclude *.bz2"
| > | and "-X exclude-file" (where exclude-file contains "*.bz2"). Any quick
| > | way to accomplish this?
--
Doug McLaren, [EMAIL PROTECTED]
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]