User Tools

Site Tools


docs:tips_n_tricks:max_os_x:zip.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
docs:tips_n_tricks:max_os_x:zip.html [13.08.2012 14:02 CEST] – [Using pipes] peterdocs:tips_n_tricks:max_os_x:zip.html [19.12.2015 14:58 CET] – [Using pipes] peter
Line 10: Line 10:
   unzip backup - | tar -xf -   unzip backup - | tar -xf -
      
-This will not work. The reason is - as stated in the man page as well - that zip switches to //Zip64// mode which is suited for large files as on a pipe the file size is not known in advance. And obviously can'unzip handle that format. There are to solutions to this:+This will not work. The reason is - as stated in the man page as well - that zip switches to //Zip64// mode which is suited for large files as on a pipe the file size is not known in advance. And obviously unzip can't handle that format. There are to solutions to this:
  
   - Pack with ''-fz-''<code>   - Pack with ''-fz-''<code>
-tar -cv - . | zip backup -fz- -</code>+tar -cv - .| zip backup.zip -fz- -</code>
   - Unpack with ''funzip'':<code>   - Unpack with ''funzip'':<code>
-funzip backup | tar -xf -</code>+funzip backup.zip | tar -xf -</code>
  
 According to the man page, ''gunzip'' should work too, but neither the builtin ''gunzip'' from //OS X 10.6.x// nor the ''gunzip'' from //[[http://www.macports.org|MacPorts]]// recognized the format. According to the man page, ''gunzip'' should work too, but neither the builtin ''gunzip'' from //OS X 10.6.x// nor the ''gunzip'' from //[[http://www.macports.org|MacPorts]]// recognized the format.
 +
 {{entry>OSX}} {{entry>OSX}}
 {{entry>zip}} {{entry>zip}}
 {{tag>OSX zip}} {{tag>OSX zip}}
docs/tips_n_tricks/max_os_x/zip.html.txt · Last modified: 30.06.2021 00:22 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki