Created
December 27, 2025 01:07
-
-
Save paul-lundstrom/5a937f024e7ed9be4c4e624ee793abf2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| find from_folder -name '*.*' -exec mv {} to_folder \; | |
| ls -1q * | wc -l | |
| for i in {0..26}; do cp 0.json assets/$i.json; jq '.name = .name + " #'$i'" | .image = "'$i'.png" | .properties.files[0].uri = "'$i'.png"' assets/$i.json > tmp.$$.json && mv tmp.$$.json assets/$i.json; done | |
| new=0;for i in assets/*.png; do mv -n "$i" assets/"$new.png"; ((new++)); done | |
| find ./assets/ -maxdepth 1 -type f -name "*.png" | wc -l | |
| for file in `ls -U | head -10`; do rm "$file"; done | |
| for i in assets/*.png; do mv "$i" assets/"$(uuidgen).png"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment