bin/mk
author hackbot
Sat, 29 May 2021 20:10:44 +0000
changeset 174 83ec4c52f823
parent 157 260b4289d533
permissions -rwxr-xr-x
<cd> ` bash ./bashify foo

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