From owner-freebsd-questions Sun Aug 25 13:19:39 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA01459 for questions-outgoing; Sun, 25 Aug 1996 13:19:39 -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 NAA01435 for ; Sun, 25 Aug 1996 13:19:36 -0700 (PDT) From: hoek@freenet.hamilton.on.ca Received: from freenet.hamilton.on.ca (main.freenet.hamilton.on.ca [199.212.94.65]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id MAA25868 for ; Sun, 25 Aug 1996 12:23:06 -0700 (PDT) Received: from james.freenet.hamilton.on.ca (james.freenet.hamilton.on.ca [199.212.94.66]) by freenet.hamilton.on.ca (8.7.5/8.7.3) with ESMTP id PAA04039; Sun, 25 Aug 1996 15:19:39 -0400 (EDT) Received: (from ac199@localhost) by james.freenet.hamilton.on.ca (8.7.5/8.7.3) id PAA01727; Sun, 25 Aug 1996 15:21:22 -0400 (EDT) Date: Sun, 25 Aug 1996 15:21:22 -0400 (EDT) Message-Id: <199608251921.PAA01727@james.freenet.hamilton.on.ca> X-Mailer: slnr v.2.13 as ported to FreeBSD To: reyes01@ibm.net cc: "FreeBSD questions" Subject: Re: How to get tar to read input files from file? Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In Email, "Francisco Reyes" wrote: > I have a book which has a line like > tar -cvf /dev/fd0 'cat backup.list'>backup.log If you look carefully at the book, you'll probably see that the line is actually tar -cvf /dev/fd0 `cat backup.list` > backup.log NOTE, the only difference is that I used backtics instead of single-quotes to quote "cat backup.list". Ie ` instead of '. To get an idea of what they do, type echo a b c echo `ls` echo * man echo > 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. Well, on the FreeBSD system, at least, this is a candidate for Randal Shcwartz's (sp!?) useless use of cat award. You can simply use: tar -cvf /dev/fd0 -T backup.list > backup.log > Any suggestions on how to pipe a file to tar to read input files? No, sorry. You can use the above stuff, though, to get a very similar effect. -- -- tIM...HOEk The opinions expressed above are mine, and if my employer shares them, that's his hard luck.