Posted By

flatearthcomms on 05/17/14


Tagged

unix apple terminal zip compression


Versions (?)

Zip all files in a directory files into separate archives


 / Published in: Other
 

URL: http://superuser.com/questions/430388/how-to-zip-multiple-files-into-separate-archives

Zip all files in a directory files into separate archives

  1. find . -type f -maxdepth 1 -execdir zip '{}.zip' '{}' \;
  2.  
  3. # Do all recursive folders
  4. find . -type f -execdir zip '{}.zip' '{}' \;

Report this snippet  

You need to login to post a comment.