From 191834797c19e3d320fe98f282178a3cc2c4498b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 1 Aug 2016 11:04:20 +1200 Subject: Cut hurl(1) down a lot Including removing the locale bullying; I think we'll just have to accept it --- bin/hurl | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'bin/hurl') diff --git a/bin/hurl b/bin/hurl index dad8923b..7c0b0a33 100755 --- a/bin/hurl +++ b/bin/hurl @@ -1,23 +1,5 @@ #!/bin/sh - -# # Extract URLs from an HTML document or documents. -# -# Author: Tom Ryder -# 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 -- cgit v1.2.3