Introduction
Introduction Statistics Contact Development Disclaimer Help
responsibility - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
responsibility (538B)
---
1 #!/bin/sh
2
3 template="$HOME/bin/modules/responsibility/say-no-to.vtv"
4 replacemarker="{PLEASE_REPLACE_THIS}"
5 replacelength="$(utf8expr length "${replacemarker}")"
6 replaceneutral="' ' ' ' ' ' ' ' ' ' '"
7
8 inputreplacement="$@"
9 if [ -z "$inputreplacement" ];
10 then
11 replacement="$replaceneutral"
12 else
13 replacement="$(utf8expr substr "$(printf "%*s" $replacelength "$…
14 fi
15
16 replacement="$(printf "%s\n" "$replacement" | tr '[:lower:]' '[:upper:]'…
17
18 sed "s|{PLEASE_REPLACE_THIS}|$replacement|g" $template
19
20
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.