Mercurial > repo
view bin/slashlearn @ 6955:a6b664d4b132
<ais523> ` ln -s tomfoolery bin/\'??\'
author | HackBot |
---|---|
date | Wed, 24 Feb 2016 09:17:59 +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»"