This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
GNU tar somewhat cleverer than I thought
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'am i the first one to notice'" <cygwin-talk at cygwin dot com>
- Date: Sun, 7 Sep 2008 15:13:30 +0100
- Subject: GNU tar somewhat cleverer than I thought
- Reply-to: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
http://www.gnu.org/software/tar/manual/tar.html#SEC112
" Note that the file 'cherry' is recorded in the archive under the precise
name 'cherry', not 'food/cherry'. Thus, the archive will contain three files
that all appear to have come from the same directory; if the archive is
extracted with plain 'tar --extract', all three files will be written in the
current directory.
Contrast this with the command,
$ tar -c -f jams.tar grape prune -C food red/cherry
which records the third file in the archive under the name 'red/cherry' so
that, if the archive is extracted using 'tar --extract', the third file will
be written in a subdirectory named 'orange-colored'. "
:) That's some fairly powerful AI they must have there.
cheers,
DaveK
--
Can't think of a witty .sigline today....