combine tar and gzip decompress

Jan 26, 04:17 AM

most of my bash scripts do gzip and tar in two steps.

two ways to combine ‘em:

1) put the dash-z in the command string:

tar -zxvf tarfile ;

2) feed the gzip right into the tar (notice the -c AND the dash at the end)

gzip -c -d zipfile.gz | tar -xvf – ;

Mark Edwards

,

---

Commenting is closed for this article.

---