Mercurial > repo
view bin/slashlearn @ 9206:02fbcdf9a2a9
<Taneb> learn Eyebrows are Taneb\'s most notable feature
author | HackBot |
---|---|
date | Sun, 09 Oct 2016 21:08:40 +0000 |
parents | c989a1669243 |
children | e029f1996c28 |
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»"