funzip command examples

funzip command examples

funzip – filter for extracting from a ZIP archive in a pipe

To use funzip to extract the first member file of the archive and to pipe it into more(1):

#funzip | more

To use funzip to test the first member file of (any errors will be reported on standard error):

#funzip > /dev/null

To use zip and funzip in place of compress(1) and zcat(1) (or gzip(1L) and gzcat(1L)) for tape backups:

tar cf - . | zip -7 | dd of=/dev/nrst0 obs=8k
dd if=/dev/nrst0 ibs=8k | funzip | tar xf -

(where, for example, nrst0 is a SCSI tape drive).


Leave a Reply

Your email address will not be published. Required fields are marked *