O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Challenge: .tar and .tgz Files

A listing of files in a zip file is given by zipinfo. You can get a similar listing for tar files by using the command-line tool tar:

#​ ​/​u​s​r​/​b​i​n​/​t​a​r​ ​t​f​ ​M​y​F​i​l​e​s​.​t​a​r

If the tar file is also compressed, just add a z to the flags:

#​ ​/​u​s​r​/​b​i​n​/​t​a​r​ ​t​z​f​ ​M​y​F​i​l​e​s​.​t​g​z

Extend ZIPspector to deal with .tar and .tgz files.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required