Can files in gzipped tarballs be extracted without paths?

Walter Dnes waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Thu Jul 31 01:05:44 UTC 2014


  Situation;
* I download a *.tar.gz file
* I know that it has a tarred subdirectory containing a bunch of files
* I want the files in the subdirectory extracted directly to the current
  directory.

  E.g. if the tarball has subdirectory foo with files foo/file1,
foo/file2 foo/file2, etc, I want to be able to extract file1, file2, and
file3 directly.  Right now, I dive into the tarball with mc (Midnight
Commander), and "mark and copy" the files in the virtual file system.
unzip has the -j option to "junk" the directorie structure, and unzip
all files in the archive into one directory.  Is something similar
available with tar?

-- 
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
I don't run "desktop environments"; I run useful applications
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list