Tar & Untar in one step in unix
By mantikore
tar cf – $yesterday/* | gzip > /tmp/ins-$yesterday.tar.gz
For tar.gz
gzip -dc target.tar.gz | tar xf -
For tar.bz2
bzip2 -dc target.tar.gz | tar xf -
Tags: Linux, Shell, unix
This entry was posted on September 15, 2008 at 5:59 am and is filed under Linux-Unix, Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.