On Tue, May 17, 2005 at 11:15:22AM -0500, Josh Trutwin wrote:
> I'm trying to use the following command to create an archive of all
> the SPAM folders I have on my email system:
> 
> find /usr/local/sites/ -iname '.SPAM*' | xargs tar cjvf
> spam_20050517.tar.bz2
> 
> There are IMAP folders called SPAM, Not Spam, etc.  The command works
> ok until it encounters something like "Not Spam" then the space trips
> the command up.
> 
> tar: /usr/local/sites/www.davidtrutwin.com/users/dlt/.spam.Not: Cannot
> stat: No such file or directory
> tar: Spam: Cannot stat: No such file or directory
>
> Is there an easy fix to this?

find $dir -print0 | xargs ...

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/7ac3541f/attachment.pgp