On Tue, Apr 04, 2000 at 12:54:03PM -0400, Bennett Todd ([EMAIL PROTECTED])
said:
> 2000-04-04-12:37:56 Jim Toth:
> > Assuming you have gnu find:
> > mailboxes `find ~/Mail ! -name sent -type f -printf '%p ' | sed
> >   's?/home/jtoth/?=?g'`
> 
> If you use Maildirs you don't want to be recursing; that's easy to
> do with GNU find.

True, but the reason I was doing find to begin with and not
`echo Mail/*` was that someone complained about it not recursing.  :-)

> And if you're using GNU find, you can lose the sed
> altogether, just put whatever static text you want into the printf,
> and lose the constant prefix ~/Mail by switching from %p to %P. So
> for instance I might start with
> 
>       find Mail -maxdepth 1 -printf '=%P\n'

Right, but if you don't have Maildir, and want, say
=oldmail/something, then that would turn into =something, which would
be wrong.  (although of course it wouldn't get there to begin wth b/c
of the maxdepth).

> 
> -Bennett



-- 
Jim Toth
[EMAIL PROTECTED]
"Abraham Lincoln did not die in vain.  He died in Washington, DC."
--The Firesign Theatre

Reply via email to