view bin/mk @ 11664:39008ff3589c draft

<b_jonas> `` f=bin/dateu; >$f echo $\'#!/bin/sh\\n\'\'exec date -u "+%Y-%m-%d %H:%M:%S.%N %z %Z %B %-e %A %G-W%V-%u"\'; chmod -c a+x "$f"
author HackEso <hackeso@esolangs.org>
date Thu, 06 Dec 2018 22:16:15 +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"