Skip to content

Instantly share code, notes, and snippets.

@jayswan jayswan/uexists.sh
Created Sep 28, 2016

Embed
What would you like to do?
pipe-able script to check the existence of a GitHub username; returns 200 if found
#!/bin/sh
# Usage: some_command_that_outputs_usernames | uexists.sh
# subject to anonymous API rate limits
xargs -I {} curl -w "%{http_code}\n" -sI -o /dev/null https://api.github.com/users/{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.