delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/31/13:29:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <wtung AT cisco DOT com>
From: "Wai-Yip Tung \(wtung\)" <wtung AT cisco DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: tar wildcard problem
Date: Tue, 31 Dec 2002 10:29:08 -0800
Message-ID: <001e01c2b0fa$81d556b0$ab8d6b80@amer.cisco.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
In-Reply-To: <20021230231939.GD16336@redhat.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Thanks for the clarification. I'm a seasoned programmer but have not
worked on GNU. If you can give me some pointer perhaps I can help.
(Better than trial-and-error all day :).

-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
Of Christopher Faylor
Sent: Monday, December 30, 2002 3:20 PM
To: cygwin AT cygwin DOT com
Subject: Re: tar wildcard problem


On Mon, Dec 30, 2002 at 11:34:37AM -0800, Wai-Yip Tung (wtung) wrote:
>I tried everything but non seems to work. This is my tar command:
>
>  tar -T filename.txt -X xfilename.txt -cvWf $TAR_FILE
>
>And here is my exclude file xfilename.txt:
>./*.bak
>'*.bak'
>"*.bak"
>*.bak
>file.txt
>file.bak

Have you tried this on linux?  -T does not take files containing
wildcards.

Apparently -X should take patterns however, and that isn't working.
Patches gratefully accepted.

cgf

>I have a workaround that does work.
>
>  EXCLUDE_OPT=`cat exclude_opt.txt`
>  tar -T filename.txt -X xfilename.txt $EXCLUDE_OPT -cvWf $TAR_FILE
>
>This is my exclude_opt.txt file:
>--exclude=*.class
>--exclude=*.obj
>--exclude=*.bak
>
>But this is really not nice.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019