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
docs:tips_n_tricks:max_os_x:zip.html [08.10.2012 16:33 CEST] – [Using pipes] peterdocs:tips_n_tricks:max_os_x:zip.html [30.06.2021 00:22 CEST] (current) 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 unzip can't 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 two 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.
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