Git Product home page Git Product logo

cbz.sh's Introduction

cbz.sh is a simple command line shell script (bash) to take a folder and turn it into a comic book zip archive (a zip archive with a cbz file name extension instead of zip).

###Dependancies

  • bash
  • zip (version 3)
  • afplay

###Process cbz.sh takes a list of file, check to see if they are readable folders, then passes each one to zip to compress it. zip will compress using DEFLATE at the highest compression setting, test the archive to ensure it is properly constructed, then delete the original folder (if it is empty, any unzipped files will be left behind; see the excluded files list below) and then move on to the next.

Finally, it will play a sound when finished.

###Usage cbz.sh takes any kind of list of folders to convert to a cbz archive.

cbz.sh comic1 [comic2…]

cbz.sh "comic by some dude" ["another comic by that guy"…]

cbz.sh comic*

The -k flag can be used to keep the file instead of immediately removing them on success.

cbz.sh -k comiclist

The -h flag will print the usage and exit.

###Excluded files

  • .DS_Store - Used by OS X to store folder metadata and appearance preferences.
  • Thumbs.db - Used by Windows to store file preview thumbnails.

cbz.sh's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.