Last active
October 13, 2023 14:07
-
-
Save xerpi/8761c5c8cb88d3a90b73bac053cb4e1c 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
#!/bin/bash | |
if [ "$#" -lt 1 ]; then | |
echo -e "Usage:\n\t$0 directory" | |
exit 1 | |
fi | |
if [ -z "$VITASDK" ]; then | |
echo -e "Error: VITASDK is not set." | |
exit 1 | |
fi | |
if [ ! -d $1 ]; then | |
echo "Error: directory not found!" | |
exit 1 | |
fi | |
for file in $1/*_seg0.bin | |
do | |
name=`echo $(basename $file) | rev | cut -d "_" -f 1,2 --complement | rev` | |
addr=`echo $(basename $file) | rev | cut -d "_" -f 2 | rev` | |
vita-nid-finder-flow $file $name $addr | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment