Skip to content

Instantly share code, notes, and snippets.

@HookedBehemoth
Created July 17, 2020 15:51
Embed
What would you like to do?
#!/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