Search Results

Search: Posts Made By: percivalwcy
8,981
Posted By percivalwcy
Good question! Will try your suggestion first and...
Good question! Will try your suggestion first and see if something goes terribly wrong. :confused:
10,986
Posted By percivalwcy
Hi Vi-Curious. Sorry, what I meant it does not...
Hi Vi-Curious. Sorry, what I meant it does not work for files like Files.tgz.zip. I thought that was what you meant when you said "zipped tar files". In this case, the command does not work. It works...
10,986
Posted By percivalwcy
Yes, Vi-Curious. I can't open zipped tar files as...
Yes, Vi-Curious. I can't open zipped tar files as well. That potentially is a problem because I sometimes also want to extract zip files as well. Is there any option so that we can unzip the zip...
8,981
Posted By percivalwcy
HI Perderabo. You are right. I am getting...
HI Perderabo. You are right. I am getting everything from the extraction. However, I am getting errors. Is there somewhere I can ignore the errors and exit gracefully as a success, instead of a...
8,981
Posted By percivalwcy
Possible to do it in to command line? Is it...
Possible to do it in to command line?
Is it possible to ignore the error? Any options to do so?
8,981
Posted By percivalwcy
Hi Perderabo. Thanks for the reply. I know where...
Hi Perderabo. Thanks for the reply. I know where you are coming from. Logically, I could have just called tar xvf tarfile Files/Fruits. However, in some cases, my Files.tgz will also contain
...
8,981
Posted By percivalwcy
Error when tar extract
I've got this Files.tgz containing

Fruits/Apple.txt
Drinks/Soda.txt
Drinks/Pepsi.txt

I would like to extract all files/directories with pattern "Fruits".

So, what I did was

tar -xvf...
10,986
Posted By percivalwcy
Oh yes!!!! It works!!!! Thanks so much era....
Oh yes!!!! It works!!!! Thanks so much era. Thanks so much everybody!!!!
10,986
Posted By percivalwcy
Thanks Vi-Curious. For now, I think I shall use...
Thanks Vi-Curious. For now, I think I shall use multiple lines to do what I want. Thanks so much!
10,986
Posted By percivalwcy
Hi Vi-Curious. Your code does work, but not...
Hi Vi-Curious. Your code does work, but not exactly what I was looking for. On most occasions, I don't know the exact filename inside the .tgz file to extract. Hence, the grep.

It's taking me...
10,986
Posted By percivalwcy
Extract .tgz files that only contain a pattern
Let's say I've got File.tgz that contains:-

Apple.txt
Banana.txt
Carrot.txt
AppleBanana.txt

Now, I would like to only extract files that contain the patter "Apple".

I've tried this

tar...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 05:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy