Re: Tar Question on the -T option

From: Chris F.A. Johnson (c.fa.johnson_at_rogers.com)
Date: 01/22/04

  • Next message: Steve Lockridge: "Weird FTP Problems and Errors"
    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
    

  • Next message: Steve Lockridge: "Weird FTP Problems and Errors"

    Relevant Pages

    • Re: Great SWT Program
      ... These lines are the output of a directory-listing command and are ... With typical Windows tools, one can select a block of ... the editor you don't even have the benefit of whatever autocomplete ...
      (comp.lang.java.programmer)
    • Re: Name change
      ... nearly impossible to uninstall, so I'm a bit wary about giving it a go. ... hard to scrape off the walls if the uninstall or make uninstall command ... when it shuts down - startup's quick (RAM check aside), ...
      (uk.people.support.depression)
    • Re: (some) Old Templars do not die/Long and Speculative
      ... but the leadership was composed entirely of (French) knights.... ... But not inventors. ... in command of the strategy in Outremer. ...
      (soc.history.medieval)
    • Re: Great SWT Program
      ... a line of the display for showing a search command in progress ... search turns up some references to Chinese and vim that makes me ... (repeat command) ...
      (comp.lang.java.programmer)
    • usb2 port gets very slow on 2-gig Flash Drive.
      ... I needed to reload the flash drive on a Zenstone 2-gig mp3 ... It is July 24 and ps ax -Olstart shows me that tar has ... several minutes between the rm -r -f command to wipe the FAT ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)