I think the option you want is "strip-components."

On Sat, 24 Mar 2012, Steve Wolf wrote:

I have a script Im trying to write. I download a file which is a
tar.gz file. Its actually a list of blacklist sites.

However when it extracts it creates a folder that it puts all the
subdidrectories into. eg.
\BL\ads
\BL\spam
\BL\etc
\BL\whatever
\BL\so-on

Is there any switch etc that could be used to extract the folders with
the data actually in them and not put them into the BL folder. In
other words
\ads
\spam
\whatever
\so-on

I just want the folders.

The reason why is because the actual folder that the blacklist folders
goes into is actually a folder called
\blacklist\ads
\blacklist\spam

So\BL\ is wrong.

Sure there are many ways I could achieve this eg extract them
cp \BL\*.* \blacklist them over,  but I just wondered if I could
extract them right over first off and put them in the right folder and
save some processing.

Thanks.

--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)


--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

Reply via email to