Last active
May 6, 2016 18:14
-
-
Save nad2000/ec57a3a4f90553c4ad0d7187a9ef78a8 to your computer and use it in GitHub Desktop.
extracts the domain names from https://web.archive.org/web/20111005152029/http://registro.br/dominio/proclib-l.html
This file contains hidden or 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
sed '0,/\<pre\>/d; /<\/pre>/,$d; s/ *//g; s/\t\t*/\n/g' -i archive.txt | |
# or together with the retrieving | |
curl https://web.archive.org/web/20111005152029/http://registro.br/dominio/proclib-l.html | sed '0,/\<pre\>/d; /<\/pre>/,$d; s/ *//g; s/\t\t*/\n/g' >archive.txt | |
# useful tihg | |
sort -R archive.txt > random_archive.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment