On Wed, 2005-03-23 at 15:30 -0700, Nicholas Leippe wrote:
> On Wednesday 23 March 2005 03:04 pm, Stuart Jansen wrote:
> > Safer would be 
> > to stop doing a one liner.
> 
> What's wrong with one-liners?  Why not:
> 
> f=.$RANDOM; mkfifo $f; find -iname '*.csv' > $f & \
> tar -T $f -cjf archive.tar.bz2 && rm $f
> 

Heh, nice. ;-)

Might want to toss an || rm $f to emulate a finally block.

/me wonders if that works with files containing spaces in the name

-- 
Stuart Jansen                   e-mail/jabber: [EMAIL PROTECTED]

"XML is like violence: if it doesn't solve your problem, you aren't
using enough of it." - Chris Maden


Attachment: signature.asc
Description: This is a digitally signed message part

.===================================.
| This has been a P.L.U.G. mailing. |
|      Don't Fear the Penguin.      |
|  IRC: #utah at irc.freenode.net   |
`==================================='

Reply via email to