bin/mk
author hackbot
Mon, 31 May 2021 08:14:18 +0000
changeset 201 7376ae5e5eff
parent 180 74b55dab8c04
permissions -rwxr-xr-x
<kron> ` ln -s / /hackenv/root

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