Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Dec 1997 03:29:07 -0500
From:      Norman C Rice <nrice@emu.sourcee.com>
To:        Shawn Ramsey <shawn@luke.cpl.net>
Cc:        questions@freebsd.org
Subject:   Re: tar ??
Message-ID:  <19971225032907.59527@emu.sourcee.com>
In-Reply-To: <Pine.BSF.3.95.971224230332.2509B-100000@luke.cpl.net>; from Shawn Ramsey on Wed, Dec 24, 1997 at 11:05:00PM -0800
References:  <Pine.BSF.3.95.971224230332.2509B-100000@luke.cpl.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 24, 1997 at 11:05:00PM -0800, Shawn Ramsey wrote:
> Can tar take input from a file? I need to tar all the directories in a
> file with this format ......
> 
> /www/docs/acb
> /www/docs/atclovr3
> /www/docs/av8rdon
> /www/docs/cal1
> /www/docs/cbslosal
> /www/docs/clancy
> /www/docs/cre8tive
> /www/docs/dawizard
> /www/docs/ekoehler
> /www/docs/fishman
> /www/docs/gjs99
> /www/docs/ieo
> /www/docs/jck
> /www/docs/jsparks
> 
> I tried tar cvf web.tar < web.list but it fails...
> 
> thanks...

I believe the -T (--files-from) option does what you want. Try

    tar -cvT listfile -f archive.tar

where listfile contains the directories/files you want to tar
(one file or directory per line).
-- 
Regards,
Norman C. Rice, Jr.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971225032907.59527>