Fix list-all.
This commit is contained in:
parent
102abf2907
commit
01f4b2bd2a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue