bin/mk
author hackbot
Sat, 29 May 2021 01:37:12 +0000
changeset 157 260b4289d533
parent 41 9adbf03703a4
permissions -rw-r--r--
<cd> bashify /hackenv/bin/mk

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