Skip to content

Instantly share code, notes, and snippets.

@cmtsij
Created September 25, 2012 02:12
Show Gist options
  • Save cmtsij/3779576 to your computer and use it in GitHub Desktop.
Save cmtsij/3779576 to your computer and use it in GitHub Desktop.
unzip ebill by convmv and 7z.
#!/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