Unzipping a File Using gunzip and tar

# gunzip -c foo.tar.gz | tar xvf -

# tar cvf - foodir | gzip > foo.tar.gz