Re: regular expressions and tar

cbaker_at_GOODYEAR.COM
Date: 06/02/03

  • Next message: cbaker_at_GOODYEAR.COM: "Re: FAStT500"
    Date:         Mon, 2 Jun 2003 12:54:11 -0400
    To: aix-l@Princeton.EDU
    
    

    Well, if "/XPmnt" is the directory and it appears in the process list as
    you said, than you are tarring the whole directory followed by the a-d
    subdirectories all over again. Gotta get that "/XPmnt" out of there.

    I do not see how it got in there based on the tar command you state?

    Try:

    cd /XPmnt
    tar -cvf /dev/rmt0 ./[a-d]*

    Christopher M. Baker
    Senior Technical Support Analyst
    DSE/TCO
    Goodyear Tire and Rubber Company

    =================================================
    Contains Confidential and/or Proprietary Information.
    May not be copied or disseminated without the expressed
    written consent of The Goodyear Tire & Rubber Company.
    =================================================

                          "Taylor, David"
                          <DTaylor@WBMI.CO To: aix-l@Princeton.EDU
                          M> cc: (bcc: Chris Baker/NA/GDYR)
                          Sent by: IBM AIX Subject: Re: regular expressions and tar
                          Discussion List
                          <aix-l@Princeton
                          .EDU>

                          06/02/2003 11:42
                          AM
                          Please respond
                          to IBM AIX
                          Discussion List

    /XPmnt is the directory from which we issued the tar command

    ls -d [1-d]* gave me exactly what I expected (directories that start with
    1-d).

                    -----Original Message-----
                    From: Sunder Iyengar [mailto:Sunder.Iyengar@VERITAS.COM]
                    Sent: Sunday, June 01, 2003 6:22 PM
                    To: aix-l@Princeton.EDU
                    Subject: Re: regular expressions and tar

                    It is interesting to note that you have a /XPmnt as the
    first file/directory
                    name in the list of files/dirs to be backed up. Why is
    that? What does a "ls
                    -d [a-d]*" in the same directory reveal?

                    Sunder.

                    -----Original Message-----
                    From: Taylor, David [mailto:DTaylor@WBMI.COM]
                    Sent: Saturday, 31 May 2003 6:53 AM
                    To: aix-l@Princeton.EDU
                    Subject: regular expressions and tar

                    Hi *

                    I am attempting to tar all the subdirectories that begin
    with the letters
                    a-d. The command I used was:

                    tar -cvf /dev/rmt0 [a-d]*

                    Looking at the process list, it shows that the shell
    expanded the arguments
                    correctly:

                    wbmpxdb01 / # ps -fu XPbackup
                         UID PID PPID C STIME TTY TIME CMD
                    XPbackup 18312 64408 2 May 29 pts/2 33:45 tar -cvf
    /dev/rmt0 /XPmnt
                    brwarne clparch data ddmarqu dmbichl dmwiesn
                    XPbackup 64408 72142 0 May 28 pts/2 0:00 -ksh
                    wbmpxdb01 / #

                    However, as I watch the output to the screen, tar is going
    after every
                    subdirectory.

                    I have tested this using different ranges and it always
    grabs all of the
                    subdirectories.

                    Can anyone explain why it might be doing this?

                    TIA

                    David

    **********************************************************************
                    This email and any files transmitted with it are
    confidential and intended
                    solely for the use of the individual or entity to whom they
    are addressed.
                    If you have received this email in error please notify the
    system manager.

                    This footnote also confirms that this email message has
    been swept by
                    MIMEsweeper for the presence of computer viruses.

                    www.mimesweeper.com

    **********************************************************************

    **********************************************************************
    This email and any files transmitted with it are confidential and
    intended solely for the use of the individual or entity to whom they
    are addressed. If you have received this email in error please notify
    the system manager.

    This footnote also confirms that this email message has been swept by
    MIMEsweeper for the presence of computer viruses.

    www.mimesweeper.com
    **********************************************************************


  • Next message: cbaker_at_GOODYEAR.COM: "Re: FAStT500"

    Relevant Pages

    • Re: join not joining more then 9 lines
      ... Goodyear Tire and Rubber Company ... written consent of The Goodyear Tire & Rubber Company. ...
      (AIX-L)
    • Re: IntelliStation Power 275
      ... Goodyear Tire and Rubber Company ... written consent of The Goodyear Tire & Rubber Company. ... workstations will not beep? ... We have a few users who claim that they need the DVD drives on these ...
      (AIX-L)
    • Re: IntelliStation Power 275
      ... Goodyear Tire and Rubber Company ... written consent of The Goodyear Tire & Rubber Company. ... workstations will not beep? ... We have a few users who claim that they need the DVD drives on these ...
      (AIX-L)
    • Re: Big VG
      ... Senior Technical Support Analyst ... Goodyear Tire and Rubber Company ... written consent of The Goodyear Tire & Rubber Company. ... Be aware there was an issue with the chvg command and AIX 5.2... ...
      (AIX-L)
    • Re: H70 and AIX 5.3 (Update)
      ... >not figured out what went wrong, but I ended up having to remove HACMP ... >written consent of The Goodyear Tire & Rubber Company. ... You are hereby notified that any dissemination, ...
      (AIX-L)