Mercurial > repo
view bin/mk @ 7937:ff34e0948c3e
<shachaf> ` mv bin/derp/mk bin/mk; rmdir bin/derp
author | HackBot |
---|---|
date | Sat, 07 May 2016 01:53:00 +0000 |
parents | 590419ef61ff |
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"