bin/mk
author hackbot
Sun, 30 May 2021 00:43:04 +0000
changeset 192 f4a4330bb886
parent 180 74b55dab8c04
permissions -rwxr-xr-x
<cd> ` echo "It\'s cd\'s cat." > /hackenv/help/best_cat.help

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