On Thu, 2002-09-05 at 19:58, Bret Hughes wrote:
> On Thu, 2002-09-05 at 21:01, Gordon Messmer wrote:
> > On Thu, 2002-09-05 at 17:50, Sam Ockman wrote:
> > > The best way to probably do this is to learn how to use the find
> > > command.  It's complicated but should allow you to do this without
> > > shell scripting
> > 
> > It would be difficult to extract the files to the correct location with
> > "find" by itself.
> 
> why?  As long as you started from the same place, it seems like it would
> work sine find will return a relative path begining with ./ on my
> machines runing linux.  I know I am probably missing something here but
> what?

find . -name '*.tar.gz' -exec tar zxf {} \;

That's what you're thinking, right?  Tar will be launched from the top
level directory, and while it'll get the full path to the tarball, it'll
extract all of the files at the top level.  That does not preserve the
directory structure, as the original poster asked.




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to