Could you please help to get specific files from /di/data/prd/serial/lookup/abetlp11_lookup_20180206.tar.lzo without extracting whole compressed file tar.lzo as its size is huge
Operating system? Different OSs have different tools, or different flavours of the same tool.
Shell? Shells vary in their abilities and built-in commands.
Having said that, I reckon this should work (although I have no knowledge of lzop, which I assume is the program used to compress your tar file):
Find the path of the file you want to extract from the archive:
There may be multiple files that match, so identify the file and then add it to this line:
That is, replace path/of/file/to/extract with the full line that matches your file.
Andrew
Last edited by apmcd47; 03-16-2018 at 07:09 AM..
Reason: forgot to add proper path of archive file in my example
I was looking at this tutorial for tar extract Z file. Is there a reason why this did not work? I checked my man pages and it had a -Z option.
tar -xZvf /opt/Nimsoft/nimldr.tar.Z
tar (child): compress: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now... (2 Replies)
Hi Guys,
I have 2 compressed files tar.lzo and having many subdirectories inside it.
I would like to know which files having the difference in terms of size/content.
I am using bash shell and unix server
example:-
file1 :- abc.tar.lzo
file2 :- xyz.tar.lzo
Result:-
... (4 Replies)
I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it.
Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem?
tar tvf file1.tar
... (1 Reply)
Hi,
Hi recently downloaded the source code from Advanced Programming in the Unix Envrionment 2e and extracted the source from its tar file. The extracted files have these characteristics:
1) They can can be seen in a directory listing and brought up for viewing in emacs;
2) They cannot be... (2 Replies)
Hi ,
I need to extarct only a particulay files from the tar.Z.
ie
i need to extract one.txt from test.tar.Z.
The test.tar.Z may contain lot of file and folders.
Please help me to extract particular file to some location.
Regards,
Kalai. (1 Reply)
Hi,
This is my first post here - I'm hoping I can get some help! I have searched these forums and othersand not getting anything that works.
I am trying to extract a single file from a tar archive to a diffierent location than it will default to.
For example my tar log shows me ...
a... (3 Replies)
hi everyone
i have a tar file which was in AIX box. its 300mb.
i cant untar in windowsxp home. I just get an empty folder with no files when i extract. i dont get any bad header or any such error.
i am using IZARC which is a freeware. Not sure if i should try winzip or winrar.
any help (2 Replies)
anyone know if it is possable to extract a subdirectory in a tar file.
IE
tarfile contains
parent dir
-sub dir A
-sub dir B
I want to extract sub dir B. (2 Replies)