commit 192ff85d55f9006475cdacdbebd1a7e2cfd683a9 parent 81f916b9299dd8434e765fc230d0e177cae72bdd Author: Tomas Hlavaty <tom@logand.com> Date: Tue, 2 Jul 2019 07:53:46 +0200 added unabw Diffstat:
A | unabw | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/unabw b/unabw @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -euo pipefail +sed 's/<p[^<\/]*>/\n/g' "$1" \ + | sed 's/<[^<]*>//g' \ + | sed 's/</</g' \ + | sed 's/>/>/g' \ + | sed "s/'/'/g" \ + | sed 's/"/"/g' \ + | sed 's/&/&/g' \ + | cat -s