summaryrefslogtreecommitdiff
path: root/.local/bin/send-package
blob: bcd7eb0dee6ad9a3b725de7f837fae397dba5987 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Why not?

readonly 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"                         \
| smail