Mercurial > repo
view bin/slashlearn @ 8903:7fda33974599
<oerjan> le/rn tile shuffling/Tile shuffve games. ly addictie basis of many highling is th
author | HackBot |
---|---|
date | Tue, 09 Aug 2016 23:48:43 +0000 |
parents | b833ca1bf23c |
children |
line wrap: on
line source
sep="/"; [[ "$0" == *//* ]] && sep="//"; [[ "$1" == ?*"$sep"* ]] || exit 1; key="$(echo "${1%%$sep*}" | lowercase)"; value="${1#*$sep}"; [ -e "wisdom/$key" ] && verb="Relearned" || verb="Learned"; echo "$value" > "$(echo-p "wisdom/$key")" && echo "$verb «$key»"