Created
September 25, 2012 02:12
-
-
Save cmtsij/3779576 to your computer and use it in GitHub Desktop.
unzip ebill by convmv and 7z.
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/sh | |
file=$1 | |
path=${file%%.zip} | |
mkdir -p $path | |
LANG=en_US.BIG-5 7z e -y -o"$path" "$file" 2>/dev/null | |
(cd "$path" && convmv -f BIG5 -t UTF-8 --notest --replace * ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment