bin/mk
author hackbot
Sat, 22 May 2021 19:36:22 -0500
changeset 43 bd71706947b7
parent 41 9adbf03703a4
child 157 260b4289d533
permissions -rwxr-xr-x
<cd> ` chmod +x /hackenv/bin/echo-p

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