Skip to content

Instantly share code, notes, and snippets.

@juice500ml
Created December 19, 2016 04:39
Show Gist options
  • Save juice500ml/c64943e05cdd995a31ea5d297c5005b8 to your computer and use it in GitHub Desktop.
Save juice500ml/c64943e05cdd995a31ea5d297c5005b8 to your computer and use it in GitHub Desktop.
converts current folder files from euc-kr to utf-8
for i in *
do
if $( file -i "${i}"|grep -q iso-8859-1 ); then
iconv -f euc-kr -t utf-8 "$i" -o "out/${i}"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment