On Tue, May 17, 2005 at 11:33:05AM -0500, Jim Crumley wrote:
> Try:
> 
> find /usr/local/sites/ -iname '.SPAM*'  -exec tar cjvf {} spam_20050517.tar.bz2 \;

Do not try that, the first argument to tar is the output file.

<warning, UNTESTED>
To stretch the example, you would do 

   find /usr/local/sites/ -iname '.SPAM*'  -exec tar cuvf spam_20050517.tar {} \;
   bzip2 spam_20050517.tar

But that will still be horribly inefficient, spawning one tar process
for every file.

florin

-- 

Don't question authority: they don't know either!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20050517/3a7ecaf6/attachment.pgp