view bin/mk @ 6929:b6b69ebd1306

<b_jonas> slashlearn syntactic sugar/Syntactic sugar causes semicolon cancer
author HackBot
date Mon, 22 Feb 2016 09:42:53 +0000
parents 5faf5c9fd792
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"