Created
May 15, 2016 08:32
-
-
Save gumblex/977ff9257754336d98307463ab98dbdb to your computer and use it in GitHub Desktop.
Re-zip hacg's encrypted rars
This file contains 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 "$1" | |
find . -name "*.rar" -type f -print0 | while IFS= read -r -d $'\0' filename; do | |
basefn=$(basename "$filename") | |
basefncut="${basefn%.*}" | |
unar -p 扶她奶茶 -o /tmp -d "$filename" | |
7za a -tzip -mx=9 "${filename%.*}".zip /tmp/"$basefncut"/* | |
rm -rf /tmp/"$basefncut"/ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
要是有判定灰度图换成单通道 JPEG 的就好了(逃