diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-01 11:04:20 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-01 11:04:20 +1200 |
commit | 191834797c19e3d320fe98f282178a3cc2c4498b (patch) | |
tree | 418ef4febf8b898091acc04e562ec81ad774003b | |
parent | Spruce up/correct rndi(1) manual a bit (diff) | |
download | dotfiles-191834797c19e3d320fe98f282178a3cc2c4498b.tar.gz dotfiles-191834797c19e3d320fe98f282178a3cc2c4498b.zip |
Cut hurl(1) down a lot
Including removing the locale bullying; I think we'll just have to
accept it
-rwxr-xr-x | bin/hurl | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -1,23 +1,5 @@ #!/bin/sh - -# # Extract <a href="..."> URLs from an HTML document or documents. -# -# Author: Tom Ryder <tom@sanctum.geek.nz> -# Copyright: 2016 -# License: Public domain -# - -# Set a sensible locale so that sort(1) doesn't act dumbly. May as well set it -# script-wide in case it's relevant to any other programs. -LANG=C.UTF-8 -export LANG - -# Emit the content of the args, or stdin cat -- "${@:-/dev/stdin}" | # shellcheck disable=SC2002 - -# Pipe it through a pup filter to get all the values of the a href elements pup -p 'a attr{href}' | - -# Sort it uniquely sort | uniq |