annotate bin/slashlearn @ 6660:d5e6f3938ac8

<oerjan> revert
author HackBot
date Tue, 09 Feb 2016 01:15:42 +0000
parents 505f4ce0d864
children 556bd058172e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6660
d5e6f3938ac8 <oerjan> revert
HackBot
parents: 6659
diff changeset
1 sep="/"; [[ "$0" == *//* ]] && sep="//"; [[ "$1" == ?*"$sep"* ]] || exit 1; key="$(echo "${1%%$sep*}" | lowercase)"; value="${1#*$sep}"; echo "$value" > "wisdom/$key" && echo "Learned «$key»"