Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.