tar noob question

Lonnie Olson fungus at aros.net
Wed Mar 23 16:19:09 MST 2005

On Mar 23, 2005, at 3:40 PM, Stuart Jansen wrote:
> On Wed, 2005-03-23 at 15:30 -0700, Nicholas Leippe wrote:
>> 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

or you can do without the fifo altogether.

find -iname '*.csv' | tar -T - -cjf archive.tar.bz2

the "-T -" means that it will retrieve a list of files to backup from 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2482 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20050323/05d241ec/attachment.bin 

More information about the PLUG mailing list