Version 3 of Tcllib tar

Updated 2013-11-16 21:51:57 by pooryorick

tar is a Tcllib package for handling tar data.

Documentation

official reference

Example: Extract a File from tar.gz

To work with a gzipped tar file:

set chan [open myfile.tar.gz]
zlib push gunzip $chan 
set data [::tar::get $chan some_file_in_tarball]
close $chan

Example: Compress to tar.gz

#! /bin/env tclsh

package require tar

set chan [open somefile.tar.gz w]
zlib push gzip $chan
tar::create $chan [list of files] -chan