Last active
July 28, 2020 22:45
-
-
Save Scorcerer/5617f5825ebdce3ca41026a6da686a1a to your computer and use it in GitHub Desktop.
Manga commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Unpack downloaded stuff: | |
| for i in $(seq 1 985) ; do 7z e -o$i Name_Here_$i ; done | |
| # In QMV, add leading 0 to double-digit chapters: | |
| %s/\t\(\d\d\)$/\t0\1/ | |
| # And now single-digit chapters: | |
| %s/\t\(\d\)$/\t00\1/ | |
| # Now add leading 0 to chapter pages: | |
| %s/_\(\d\.jpg\)$/_0\1/g | |
| # And to chapters again: | |
| %s/_\(\d_\d\d\.jpg\)$/_00\1/g | |
| %s/_\(\d\d_\d\d\.jpg\)$/_0\1/g | |
| # Remove the name form file: | |
| %s/Name_Here_\(\d\d\d_\d\d\.jpg\)$/\1/g | |
| # To RAR 10s of dirs automagically to CBR files: | |
| for i in $(ls | sed -e 's/\([0-9][0-9]\)[0-9]/\1/' | sort -u) ; do rar a -r Name-$i.cbr $i* ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment