bin/mk
author hackbot
Thu, 03 Jun 2021 17:11:43 +0000
changeset 208 4ff53c03fe89
parent 180 74b55dab8c04
permissions -rwxr-xr-x
<cd> ` echo \'(defun p (str) (format T "~A" str)) (defun pn (str) (format T "~A~%" str))\' > ../etc/clinit.cl

#!/bin/bash
[[ "$1" == ?*//* ]] || { echo usage: "mk[x]" file//contents >&2; exit 1; }; key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$(echo-p "$key")" && echo "$key"