Skip to content

Instantly share code, notes, and snippets.

@avandrevitor
Forked from rmetzler/gist:2947828
Created January 13, 2018 15:54
Show Gist options
  • Save avandrevitor/6d1fdf7a4e12ca506945208df11a97d6 to your computer and use it in GitHub Desktop.
Save avandrevitor/6d1fdf7a4e12ca506945208df11a97d6 to your computer and use it in GitHub Desktop.
find all non UTF-8 encoded files
find . -type f | xargs -I {} bash -c "iconv -f utf-8 -t utf-16 {} &>/dev/null || echo {}" > utf8_fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment