Created
September 28, 2016 15:03
-
-
Save jayswan/592a883b359185d0b2fcf3358f601057 to your computer and use it in GitHub Desktop.
pipe-able script to check the existence of a GitHub username; returns 200 if found
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 | |
# 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