Skip to content

Instantly share code, notes, and snippets.

@macks
Created September 24, 2010 06:56
Show Gist options
  • Save macks/594962 to your computer and use it in GitHub Desktop.
Save macks/594962 to your computer and use it in GitHub Desktop.
unzip cp932 files
#!/bin/sh -e
zipfile="$1"
dir="$2"
if test -z "$2"; then
echo "USAGE: $0 ZIPFILE DIR"
exit
fi
mkdir cp932
ln "$2"/* cp932
convmv -f UTF-8 -t CP932 --notest cp932/*
zip -r "$1" cp932
rm -rf cp932
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment