From owner-freebsd-questions Thu Dec 25 00:29:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA29828 for questions-outgoing; Thu, 25 Dec 1997 00:29:35 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from emu.sourcee.com (emu.sourcee.com [199.201.159.173]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA29817 for ; Thu, 25 Dec 1997 00:29:24 -0800 (PST) (envelope-from nrice@emu.sourcee.com) Received: (from nrice@localhost) by emu.sourcee.com (8.8.8/8.8.3) id DAA06263; Thu, 25 Dec 1997 03:29:07 -0500 (EST) Message-ID: <19971225032907.59527@emu.sourcee.com> Date: Thu, 25 Dec 1997 03:29:07 -0500 From: Norman C Rice To: Shawn Ramsey Cc: questions@freebsd.org Subject: Re: tar ?? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: ; from Shawn Ramsey on Wed, Dec 24, 1997 at 11:05:00PM -0800 Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.