View Single Post
Old 09-12-2008, 09:47 AM   #6
salty-horse
Enthusiast
salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.
 
salty-horse's Avatar
 
Posts: 27
Karma: 6166
Join Date: Sep 2008
Device: Sony PRS-T1
Doh!

Code:
zip -Xvur Author_Title.epub mimetype *
Yay! The extended file attributes store things like Unix user and group id's. They're really meaningless when zipping and unzipping on different machines, so why not compress all files like this...
The zip command is verbose by default, and -u isn't needed for new files, so you can even make this shorter:

Code:
zip -Xr Author_Title.epub mimetype *
salty-horse is offline   Reply With Quote