Mercurial > repo
view bin/slashlearn @ 9280:2d58b8902aa7
<oerjan> addquote <hppavilion[1]> THEY MADE A MOVIE ABOUT THE 50 SHADES SEQUEL TOO! <hppavilion[1]> Somebody shall pay for this <imode> not me, I ain\'t buyin\' a ticket.
author | HackBot |
---|---|
date | Fri, 14 Oct 2016 15:37:50 +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»"