Skip to content

Instantly share code, notes, and snippets.

@hendrikkao1
Created March 21, 2015 19:20
Show Gist options
  • Save hendrikkao1/62f5017937c98f5f13de to your computer and use it in GitHub Desktop.
Save hendrikkao1/62f5017937c98f5f13de to your computer and use it in GitHub Desktop.
Check the encoding of .htm, .html and .xml files in the directory
#!/bin/sh
for f in `find . -name "*.htm" -o -name "*.html" -o -name "*.xml"` ;
do
echo `file -I "$f"` ;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment