Created
October 28, 2018 08:51
-
-
Save psychoticbeef/4e9f498fcd0297a1513f1813d4958a1e to your computer and use it in GitHub Desktop.
Get all stackexchange domains for lastpass (to treat them as a single entity)
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
curl https://stackexchange.com/sites?view=list|awk '/lv-item/{getline; print}'|cut -d '"' -f2|grep -o '[^.]*\.[^.]*$'|sed 's/https:\/\///g'|sort|uniq|tr '\n' ',' | |
# output 10/28/2018: askubuntu.com,mathoverflow.net,serverfault.com,stackapps.com,stackexchange.com,stackoverflow.com,superuser.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment