From owner-freebsd-questions Sun Aug 25 13:26:47 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA02767 for questions-outgoing; Sun, 25 Aug 1996 13:26:47 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA02730 for ; Sun, 25 Aug 1996 13:26:38 -0700 (PDT) Received: from iworks.InterWorks.org (daemon@iworks.interworks.org [128.255.18.10]) by who.cdrom.com (8.7.5/8.6.11) with SMTP id HAA24924 for ; Sun, 25 Aug 1996 07:06:06 -0700 (PDT) Received: by iworks.InterWorks.org (1.37.109.8/16.2) id AA12147; Sun, 25 Aug 1996 07:18:18 -0500 Message-Id: <9608251218.AA12147@iworks.InterWorks.org> Date: Sun, 25 Aug 1996 07:18:18 -0500 From: "Daniel M. Eischen" To: questions@FreeBSD.ORG, reyes01@ibm.net Subject: Re: How to get tar to read input files from file? Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I have a book which has a line like > tar -cvf /dev/fd0 'cat backup.list'>backup.log > > It is supposed to read the file names from a file called backup.list. > When I try it it dowsn't work. I tried also using that didn't work either. > > Any suggestions on how to pipe a file to tar to read input files? You've got the quotes going in the wrong direction (' != `). The backwards quote (what's the name of this guy?) causes execution of whatever it surrounds. Use this: tar -cvf /dev/fd0 `cat backup.list` > backup.log Dan Eischen deischen@iworks.InterWorks.org