tar wildcard problem

Wai-Yip Tung (wtung) wtung@cisco.com
Tue Dec 31 16:47:00 GMT 2002


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@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf
Of Christopher Faylor
Sent: Monday, December 30, 2002 3:20 PM
To: cygwin@cygwin.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/



More information about the Cygwin mailing list