11 lines
302 B
Bash
Executable file
11 lines
302 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
list_all() {
|
|
local http_endpoint="https://www.python.org/ftp/python/"
|
|
local extract_regexp='s|.*\?<a .*\?>\([0-9].*\?\)/</a>.*\?|\1|p'
|
|
local black_list='2.0'
|
|
|
|
curl -s $http_endpoint | sed -ne "$extract_regexp" | grep -vE "^($black_list)$" | tr '\n' ' '
|
|
}
|
|
|
|
list_all
|