Last active
December 25, 2018 15:54
-
-
Save tebriel/6ed1f333c979ef62ef475d97230b3b27 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 bash | |
set -euo pipefail | |
FILENAME=${1?"Must specify filename as first arg"} | |
if od -A x -t x1 -v "$FILENAME" | grep -Eqe " 0[1-8bcef]| 1[0-9a-f]"; then | |
echo "$FILENAME: data" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment