Mercurial > repo
view bin/slashlearn @ 7068:8999c7fb91ea
<oerjan> touch test2
author | HackBot |
---|---|
date | Wed, 02 Mar 2016 23:48:40 +0000 |
parents | 556bd058172e |
children | 59c9be91adcd |
line wrap: on
line source
sep="/"; [[ "$0" == *//* ]] && sep="//"; [[ "$1" == ?*"$sep"* ]] || exit 1; key="$(echo "${1%%$sep*}" | lowercase)"; value="${1#*$sep}"; echo "$value" > "$(echo-p "wisdom/$key")" && echo "Learned «$key»"