Removing directories from tar file


I have a bunch of tar files from an old web server.  The internal file structure of each tar file  is similar to

When I extract to the current directory, I get the whole directory structure, i.e. ./home/a/b/abwebsite etc
I would like to extract from the website name, so that the extract creates ./abwebsite/....

Is tar able to start extracting from a subdirectory like this?
If not, what would be a good way to do this - bear in mind that all of the tar files have different directories after home, e.g.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tar has nothing built in to implement your strategy. Extract all the tar files in a common directory and tar them anew as a single archive
Todd MummertCommented:

tar -x -f tarfile --strip-components 3


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brothertomAuthor Commented:
THANKS alot - just want I needed.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.