Created
October 6, 2018 10:06
-
-
Save ak64th/eab2d7a90745cd98daed79b57826d2bb to your computer and use it in GitHub Desktop.
unzip files with unicode filenames
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/sh | |
LANG=C /usr/bin/7z x -y "$1" | sed -n 's/^Extracting //p' | sed '1!G;h;$!d' | xargs convmv -f gbk -t utf8 --notest &>/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment