tar noob question
Stuart Jansen
sjansen at buscaluz.org
Wed Mar 23 15:40:05 MST 2005
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: sjansen at buscaluz.org
"XML is like violence: if it doesn't solve your problem, you aren't
using enough of it." - Chris Maden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://plug.org/pipermail/plug/attachments/20050323/09953149/attachment.bin
More information about the PLUG
mailing list