Re: Tar Question on the -T option
From: Chris F.A. Johnson (c.fa.johnson_at_rogers.com)
Date: 01/22/04
- Previous message: David J.: "Tar Question on the -T option"
- In reply to: David J.: "Tar Question on the -T option"
- Next in thread: Doug Freyburger: "Re: Tar Question on the -T option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Jan 2004 01:37:30 GMT
On Thu, 22 Jan 2004 at 00:55 GMT, David J. wrote:
[snip]
> find $DIRS -mtime -1 -type f -print | tar zcvf $BKUPDIR/$DATE.tgz -T -
>
> ^^^^^^
> Okay, so of course its just tar, taking input from the find command.
> But I dont get the order of these options. Im comfortable with
> examples like
>
> tar -zcvf /file.tgz ./dir-to-archive
>
> But the -T - at the end, Im puzzled as to how its working. I stripped
> off the extra - on the end, and it fails.
>
> -T in the man page says:
> -T, --files-from=F
> get names to extract or create from file F
> Which I cannot understand. Syntax wise, I cannont grasp what they
> mean.
When a hyphen is used in place of a filename, it refers to
stdin. It's a common usage.
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
- Previous message: David J.: "Tar Question on the -T option"
- In reply to: David J.: "Tar Question on the -T option"
- Next in thread: Doug Freyburger: "Re: Tar Question on the -T option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|