Created
January 15, 2019 15:15
-
-
Save Sagebati/ea3803d0dea59b4d30530d0dc63bcb99 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| # cd ~/Mangas_Hikaru_no_go/ | |
| # script vol1.zip vol2.zip | |
| # or script * | |
| # Gist that clean the mangas downloaded my manga-dl.py by renaming .mri by .jpg | |
| # to support comics readers. | |
| one_archive(){ | |
| f=${1%%.*}.$$ | |
| folder_name=/tmp/$f | |
| echo $1 | |
| unzip $1 -d $folder_name | |
| path_current=`pwd` | |
| cd $folder_name | |
| for line in *.mri; do | |
| echo $line changed | |
| mv $line ${line%.*}.jpg | |
| done | |
| rm "$path_current/$1" | |
| zip "$path_current/$1" * | |
| } | |
| for i in $* ; do | |
| one_archive $i & | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment