Created
February 16, 2021 18:37
-
-
Save jstrosch/440921425bd55d9342e678619d4cc87f 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 bash | |
SAMPLES=$1 | |
# Ensure there is at least one argument | |
if [ $# -eq 0 ]; then | |
echo "[!] Usage: $0 'path to binary files'"; | |
exit 1; | |
fi | |
# Test if file exists | |
if [ ! -d "$SAMPLES" ]; then | |
echo "[!] Directory doesn't exist, please provide a valid path to your samples" | |
exit 1; | |
fi | |
for f in $SAMPLES* | |
do | |
out=$(basename "$f") | |
echo $out | |
./pixd -w 100 "$f" | awk 'FNR <= 30' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment