Skip to content

Instantly share code, notes, and snippets.

@sly-x86
Created August 26, 2016 17:01
Show Gist options
  • Save sly-x86/63974d32fdc08b6511e01b0af197175a to your computer and use it in GitHub Desktop.
Save sly-x86/63974d32fdc08b6511e01b0af197175a to your computer and use it in GitHub Desktop.
#!/bin/bash
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f |
while read file
do
echo "- $file"
mv $file $file.icv
iconv -f WINDOWS-1251 -t UTF-8 $file.icv > $file
rm -f $file.icv
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment