Created
October 14, 2022 13:18
-
-
Save williambl/eeb41a290c8f5becb38aac12222ef945 to your computer and use it in GitHub Desktop.
sh one-liner to transform list of mc player names into uuids (usage: `./uuids.sh inputfile outputfile`)
This file contains 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
#!/bin/sh | |
cat $1 | sort | uniq | xargs -I USERNAME curl -s "https://playerdb.co/api/player/minecraft/USERNAME" | jq --raw-output .data.player.id > $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment