Created
December 19, 2016 12:10
-
-
Save cereal-s/c09bbc0fc0fffcb3ca3255b90e7164fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
if LC_ALL=C grep -q '[^[:print:][:space:]]' "/path/to/file.jpg"; then | |
echo "file contains non-ascii characters" | |
else | |
echo "file contains ascii characters only" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment