Skip to content

Instantly share code, notes, and snippets.

@petrohs
Created September 17, 2020 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrohs/6611eedbe703bd2b6358825a3b768132 to your computer and use it in GitHub Desktop.
Save petrohs/6611eedbe703bd2b6358825a3b768132 to your computer and use it in GitHub Desktop.
debianHuerfanosPopular¦ obtener listado de paquetes huarfanos de la lista de popularidad Debian
#!/bin/bash
rm by_vote orphaned.html orphaned.txt huerfanosPopulares.txt;
wget https://popcon.debian.org/by_vote
wget https://www.debian.org/devel/wnpp/orphaned.html
#grep 'bugs.debian.org' orphaned.html | cut -d: -f2 | cut -d\> -f2 | sed -e "s/.*/& /" | head -2 > orphaned.txt
grep 'bugs.debian.org' orphaned.html | sed -e "s'.*<li><a href=.https://bugs.debian.org/........' '" -e "s/:.*/ /" > orphaned.txt
grep -f orphaned.txt by_vote > huerfanosPopulares.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment