SysTutorials Forums QA How to cat a text file out from a tar archive without having to extracting it?

Tagged: 

How to cat a text file out from a compressed tar archive package without having to extracting the whole package?

For example, I have a pkg.tar.gz which contains a text file pkg/readme.txt in it. How to cat the pkg/readme.txt file content out?

You may use this command to cat out the file content:

tar -O -xf pkg.tar.gz pkg/version.txt
Reply To: How to cat a text file out from a tar archive without having to extracting it?
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Please share if you like this post: