Skip to content

Instantly share code, notes, and snippets.

@timplunkett
Created May 2, 2023 01:02
Show Gist options
  • Save timplunkett/6c53d69410b22bcd9f27066c9f1ee1d5 to your computer and use it in GitHub Desktop.
Save timplunkett/6c53d69410b22bcd9f27066c9f1ee1d5 to your computer and use it in GitHub Desktop.
#!/bin/bash
curl -s "https://www.drupal.org/u/$1" | awk -F'/' 'BEGIN{RS="<"} /href="\/user\/[0-9]+/ { print $3; exit }' | { read uid; curl -s "https://www.drupal.org/api-d7/user/$uid.json" | jq .created | sed 's/"//g' | { read created; date -r "$created"; }; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment