view bin/mk @ 11956:1f965298f0fe draft

<wib_jonas> ` set -e; cd share/mtg; tr -d \\\\\\\\r <MagicCompRules_20191004.txt > rules.txt
author HackEso <hackeso@esolangs.org>
date Tue, 01 Oct 2019 08:31:53 +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"