diff options
Diffstat (limited to '.local/bin/send-package')
-rwxr-xr-x | .local/bin/send-package | 12 |
1 files changed, 6 insertions, 6 deletions
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 |