From: Nicolas Boisselier Date: Sun, 14 May 2023 22:59:17 +0000 (+0200) Subject: no more space for link X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a8eebffd3092c442c2c04fdac53c5adc48ac9ff0;p=nb.git no more space for link --- diff --git a/lib/postgres/nginx_var.sh b/lib/postgres/nginx_var.sh index 442b42bc..68500b17 100755 --- a/lib/postgres/nginx_var.sh +++ b/lib/postgres/nginx_var.sh @@ -1,6 +1,8 @@ #!/bin/bash -l http_get https://nginx.org/en/docs/varindex.html \ | xmllint --html --xpath "/html/body//div[@id=\"content\"]//p" - 2>/dev/null \ -| sed -E -e "s,([^<]+) *(\(([^\)]+)\))?,https://nginx.org/en/docs/\1\t\2\t\4\n,g" -e "s,<[^>]+>,,g" \ +| sed -E \ + -e "s, *([^<]+) *(\(([^\)]+)\))?,https://nginx.org/en/docs/\1\t\2\t\4\n,g" \ + -e "s,<[^>]+>,,g" \ | grep -v "^ *$" | sed "s,(\([^(]\+\))$,\1,g" \ | awk 'BEGIN{FS="\t"}{print $2"\t"$3"\t"$1}' \