: Can files in gzipped tarballs be extracted without paths?

"Walter Dnes" <waltdnes-SLHPyeZ9y/[email protected]> Wed, 30 Jul 2014 21:05:44 -0400
Newsgroups gmane.org.user-groups.linux.tolug
Message-ID <[email protected]>
  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/[email protected]>
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