Reading files inside a TAR

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m4rv5
Forum Newbie
Posts: 13
Joined: Fri Apr 11, 2008 12:49 am

Reading files inside a TAR

Post by m4rv5 »

Is it possible to read a file that is inside a TAR without extracting it? If yes, how? I've research the net but search was unsuccessful
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Reading files inside a TAR

Post by Christopher »

It all depends on what you mean by 'extracting'. You can pipe the output to stdout using the -O or --to-stdout option.
(#10850)
Post Reply