Fix list-all.

This commit is contained in:
Daniel Perez 2016-05-13 15:53:24 +09:00
parent 102abf2907
commit 01f4b2bd2a

View file

@ -3,8 +3,9 @@
list_all() { list_all() {
local http_endpoint="https://www.python.org/ftp/python/" local http_endpoint="https://www.python.org/ftp/python/"
local extract_regexp='s|.*\?<a .*\?>\([0-9].*\?\)/</a>.*\?|\1|p' local extract_regexp='s|.*\?<a .*\?>\([0-9].*\?\)/</a>.*\?|\1|p'
local black_list='2.0'
curl -s $http_endpoint | sed -ne "$extract_regexp" | tr '\n' ' ' curl -s $http_endpoint | sed -ne "$extract_regexp" | grep -vE "^($black_list)$" | tr '\n' ' '
} }
list_all list_all