Skip to content

Instantly share code, notes, and snippets.

@Crhistoph
Created April 19, 2013 12:18
Show Gist options
  • Save Crhistoph/5419985 to your computer and use it in GitHub Desktop.
Save Crhistoph/5419985 to your computer and use it in GitHub Desktop.
Creates numbered .cbz files from image directories.
#!/bin/bash
for D in `find * -type d`
do
cd $D
zip -0 -m relative/path/to/comics/My\ Awesome\ Comic\ 0$D.cbz * >/dev/null
echo "$D zipped"
cd ../
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment