Mercurial > repo
view bin/mk @ 9996:0201ab241151
<tswett_> le//rn tree//You should sometimes (but not always) ignore trees.
author | HackBot |
---|---|
date | Mon, 19 Dec 2016 02:01:21 +0000 |
parents | c989a1669243 |
children |
line wrap: on
line source
[[ "$1" == ?*//* ]] || { echo usage: "mk[x]" file//contents >&2; exit 1; }; key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$(echo-p "$key")" && echo "$key"