Skip to content

Instantly share code, notes, and snippets.

@nad2000
Last active May 6, 2016 18:14
Show Gist options
  • Save nad2000/ec57a3a4f90553c4ad0d7187a9ef78a8 to your computer and use it in GitHub Desktop.
Save nad2000/ec57a3a4f90553c4ad0d7187a9ef78a8 to your computer and use it in GitHub Desktop.
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