Mercurial > repo
view bin/slashlearn @ 8313:e9520ff253c8
<shachaf> learn A wegian is an equivalence class of #esoteric members. There are two main wegians, the Nor (from Finland) and the Glas (from Hexham).
author | HackBot |
---|---|
date | Sat, 04 Jun 2016 02:51:02 +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»"