Created
July 17, 2020 15:51
-
-
Save HookedBehemoth/df36b5970e1c5b1b512ec7bdd9043c6e 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/sh | |
for f in *.nca; do | |
export NAME="$(hactool -i $f | grep "Content Type:" | cut -d":" -f2 | tr -d '[:space:]' | tr -d '[\r]')" | |
if [ $NAME == "Meta" ]; then | |
mv "$f" "${f%.nca}.cnmt.nca" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment