Created
August 28, 2015 22:55
-
-
Save ryukinix/1d671d51326bca24a61e to your computer and use it in GitHub Desktop.
Copy-paste solution to get all the usernames/repository an current path
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
#!/usr/bin/env bash | |
# | |
# Bash Script | |
# | |
# Copyright © Manoel Vilela | |
# | |
# | |
find . -iname .git -exec bash -c \ | |
"cat '{}/config' | \ | |
grep 'url.*\.git'| \ | |
sed 's/\.git//g' | \ | |
sed 's/\(.*url = .*[\/\/\@].*github.com.\)//g' " \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment