Print all git repos from a user

curl -s<username>/repos?per_page=1000 |grep git_url |awk '{print $2}'| sed 's/"\(.*\)",/\1/'

By: wuziduzi
2019-11-19 20:31:19

2 Alternatives + Submit Alt

What Others Think

Nice, though this grep/awk/sed on a json is quite disturbing. In case you can afford using custom tools, curl -s "<username>/repos?per_page=1000" | jq '.[].git_url' Otherwise I'd default to python, not very short, but nice, but python is everywhere: curl -s "" | python <(echo "import json,sys;v=json.load(sys.stdin);for i in v:; print(i['git_url']);" | tr ';' '\n')
grault · 110 weeks and 5 days ago
are there any recent updates with hair extensions des moines?
looneyhans · 60 weeks and 2 days ago
thank you for this! really appreciate you doing this baby photography
idasanka · 55 weeks and 4 days ago
private investigator omaha Can you tell me a bit more, please?
yeoyeo · 54 weeks ago
Looked great afterward. Thank you so much, amazing job fly
sammm · 50 weeks and 6 days ago
Looking forward for more unsecured loans yuma
geebranz · 36 weeks ago
I love reading best travel blogs
Leanne33 · 27 weeks and 2 days ago
Thank you so much for sharing this with me. it will be good for all to get these new commands from the post like this. So try to get new features about this to know more about it. seo services cochin
zaiyamariya · 4 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: