bin/mk
author hackbot
Sun, 23 May 2021 16:39:17 +0000
changeset 105 4fd55c1868d8
parent 41 9adbf03703a4
child 157 260b4289d533
permissions -rwxr-xr-x
<cd> ` echo "case \\$@ in hb) botsnack;; *) action "gives \\$@ some cookies.";; esac" > /hackenv/bin/cookie

[[ "$1" == ?*//* ]] || { echo usage: "mk[x]" file//contents >&2; exit 1; }; key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$(echo-p "$key")" && echo "$key"