Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
It's VERY large and contains multiple file types and multiple directories.
I only want those files with "_MP_" in their name, and there are _MP_ files are located within each directory.
These tarfiles are located on a server that I can't write to, and because of their size, I don't want to copy the whole tarfile.tar to my machine, I only want the _MP_ files on my machine. Fortunaetly the _MP_ files names are unique so they won't write over themselves when extracting
tar -xvf tarfile.tar --wildcards '*_MP_*' /home/tabitha/my_data/
but I get errors of "Not found in archive" and I know they are in there
According to tar man: --wildcards
use wildcards with --exclude
If you want just to match the pattern of retrieved files use such as following (I just used it in my system):
tar xvf ../x.tar *00002457170*
It restored only the files matching above pattern
pixellany - "VERY large" means that some of the tarballs are as large as 300+ Gigabytes
shivaa - when I use the tvf option I can see all the files and folders and subfolders inside the tarball. A typical file name of a file that I would want would be:
The other files would have the same names except the MP would be replaced by FK or DM or EM etc...
I found I can use
tar xvf tarball.tar dp1_MP_xx_2012_10_30_00_BIAS.bff
tar xvf tarball.tar *_MP_*
tar xvf tarball.tar *dp1_MP_xx*.bff
the last command seems to work for all the MP files in the tarball no matter what folder or sub folder they are in - YEA
THE OTHER PROBLEM IN THIS:
These tarfiles are located on a server that I can't write to, and because they can be 300+ gigabytes in size, I don't want to copy the whole tarball to my machine.
So how do I redirect the tar extracting command to output only the MP files to /home/tabitha/my_data/