Skip to content

Instantly share code, notes, and snippets.

@HookedBehemoth
Created July 17, 2020 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HookedBehemoth/df36b5970e1c5b1b512ec7bdd9043c6e to your computer and use it in GitHub Desktop.
Save HookedBehemoth/df36b5970e1c5b1b512ec7bdd9043c6e to your computer and use it in GitHub Desktop.
#!/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