From db7321af115a79b63267cb18889cbd334e8ca6e2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 6 Dec 2023 20:58:18 +0100 Subject: scripts: Move many a script from sh to andy --- .local/bin/send-package | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.local/bin/send-package') diff --git a/.local/bin/send-package b/.local/bin/send-package index bcd7eb0..453a148 100755 --- a/.local/bin/send-package +++ b/.local/bin/send-package @@ -1,11 +1,11 @@ -#!/bin/sh +#!/usr/local/bin/andy # Why not? -readonly tmpl="${XDG_DATA_HOME:-$HOME/.local/share}/send-package/template" +set tmpl $(XDG_DATA_HOME:$HOME/.local/share)/send-package/template -sed -En '/^Angel Cakes/,/^Doozies/s/(\t|\s{2,})/\n/gp' ~/doc/tit-names \ -| shuf -n1 \ -| tr A-Z a-z \ -| xargs -I{} -- sed 's/$REPLACEME/{}/' "$tmpl" \ +sed -En '/^Angel Cakes/,/^Doozies/s/(\t|\s{2,})/\n/gp' ~/doc/tit-names +| shuf -n1 +| tr A-Z a-z +| xargs -I{} -- sed 's/$REPLACEME/{}/' $tmpl | smail -- cgit v1.2.3