tar noob question

Nicholas Leippe nick at byu.edu
Wed Mar 23 16:32:27 MST 2005


On Wednesday 23 March 2005 04:19 pm, Lonnie Olson wrote:
> 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
> stdin.

I looked for that option for -T and didn't find it anywhere in the docs.
Didn't think to just try it.


-- 
Respectfully,

Nicholas Leippe
Sales Team Automation, LLC
1335 West 1650 North, Suite C
Springville, UT  84663 +1 801.853.4090
http://www.salesteamautomation.com



More information about the PLUG mailing list