Skip to content

Instantly share code, notes, and snippets.

@isaak654
Forked from rmetzler/gist:2947828
Created September 5, 2022 10:25
Show Gist options
  • Save isaak654/da663e9cb726217993c7ce58dbe06e85 to your computer and use it in GitHub Desktop.
Save isaak654/da663e9cb726217993c7ce58dbe06e85 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