Skip to content

Instantly share code, notes, and snippets.

@williambl
Created October 14, 2022 13:18
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 williambl/eeb41a290c8f5becb38aac12222ef945 to your computer and use it in GitHub Desktop.
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`)
#!/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