1 2 3 4 5
#!/bin/sh # Extract <a href="..."> URLs from an HTML document or documents. cat -- "${@:-/dev/stdin}" | # shellcheck disable=SC2002 pup -p 'a attr{href}' | sort | uniq