Article View: gnu.utils.bug
Article #450Something I'd like to see in GNU tar
From: Jordan K. Hubbard
Date: Thu, 28 Sep 1989 16:41
Date: Thu, 28 Sep 1989 16:41
37 lines
1801 bytes
1801 bytes
Yo, John, you listening? A feature I miss from BSD tar is the little known "F" option, which would tell it to ignore things like core, *~ #* and (I think) core files. Another F (tar cvFF.. ..files..) would cause it to ignore .o files as well. I know GNU tar has an "exclude" option that will look in a file for specific things to exclude, but I'd prefer something that would let me exclude things by regular expression. Thing would be even more useful when extended to the 'T <F>' option (get list of files to extract from file <F>), since I often forget the exact name of a file on a tape. How about: tar cvX '.*\.o$\|.*~$\|^#.*\|a\.out\|core' . to create an archive of everything in the current directory except .o files, core files, a.out's and emacs backup files. Similarly: tar xvT '.*[Ss]cheme.*' to extract any file with the word "scheme" or "Scheme" somewhere in the name. Naturally, one might want to use option letters other than 'X' and 'T' to avoid confusion. Hmmm. The more I think about this, the more I like it. If the current maintainers don't want to do it, I will. (Let me know). Jordan Hubbard PCS Computer Systeme GmbH, Munich, West Germany UUCP: pyramid!pcsbst!jkh jkh@meepmeep.pcs.com EUNET: unido!pcsbst!jkh ARPA: jkh@violet.berkeley.edu or hubbard@decwrl.dec.com
Technical Details
Message-ID:
<1070@pcsbst.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!unido!pcsbst!meepmeep.pcs.com!jkhShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!unido!pcsbst!meepmeep.pcs.com!jkh From: jkh@meepmeep.pcs.com (Jordan K. Hubbard) Newsgroups: gnu.utils.bug Subject: Something I'd like to see in GNU tar Message-ID: <1070@pcsbst.UUCP> Date: 28 Sep 89 16:41:51 GMT Sender: news@pcsbst.UUCP Reply-To: jkh@meepmeep.pcs.com (Jordan K. Hubbard) Organization: PCS Computer Systeme, GmbH Lines: 37