On Tue, May 17, 2005 at 11:45:28AM -0500, Florin Iucha wrote:
> 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.
Ack. That's what I get for not testing my solution.
> <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
This won't work either - you need "tar uvf", not "tar cuvf".
--
Jim Crumley |Twin Cities Linux Users Group Mailing List (TCLUG)
Ruthless Debian Zealot |http://www.mn-linux.org/
Never laugh at live dragons |