### get list of all *.pw.toml files in the .minecraft/mods directory ## Then cd into .minecraft/ and run `packwiz remove ` for each mod and then `packwiz mr add ` for each mod for i in $(find mods -name "*.pw.toml"); do modname=${i%".pw.toml"} modname=${modname#"mods/"} if [ ! $modname == "" ]; then echo "Removing $modname" packwiz remove $modname packwiz mr add $modname fi done find ./ -type f -exec dos2unix '{}' '+'