From 18d7985f0a6dbc2032a05c10395e3e7d6fd511ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 1 Dec 2020 00:16:11 +0100 Subject: Add 'hwrap' tool hwrap is a simple shell script that wraps the text read on standard input in an tag. This could be built into the mh script, but I think it's more UNIX-like this way. --- hwrap | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 hwrap diff --git a/hwrap b/hwrap new file mode 100755 index 0000000..7dcfae0 --- /dev/null +++ b/hwrap @@ -0,0 +1,21 @@ +#!/bin/sh + +# hwrap -- wrap in tag + +l= +while getopts l: o; do + case $o in + l) l=$OPTARG ;; + ?) echo usage: $0 [-l LANG] 1>&2; exit 1 ;; + esac +done +shift $((OPTIND-1)) + +if test -z "$l" +then echo '' +else echo "" +fi + +cat + +echo '' -- cgit v1.2.3