Zip all files in a directory files into separate archives


/ Published in: Other
Save to your folder(s)

Zip all files in a directory files into separate archives


Copy this code and paste it in your HTML
  1. find . -type f -maxdepth 1 -execdir zip '{}.zip' '{}' \;
  2.  
  3. # Do all recursive folders
  4. find . -type f -execdir zip '{}.zip' '{}' \;

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.