view bin/mk @ 8626:0969182692d6

<shachaf> mkx bin/doag//hg log --removed --template "{date|shortdate} {desc}\\n" -- "$@"
author HackBot
date Mon, 27 Jun 2016 23:59:51 +0000
parents ff34e0948c3e
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"