$> alias tarcat="perl5 -MArchive::Tar -e 'print Archive::Tar->new(shift)->get_content(shift)'"
$> tarcat mytarball.tar.gz filename
Now you can cat a specific file from inside the tarball… requires IO::Zlib and Archive::Tar though but hey … it works!
Written on October 14th, 2005 by Chris Prather