view bin/slashlearn @ 6568:79f2f9044f0b

<tswett> learn IYAM is like IANAL, except yam instead of anal.
author HackBot
date Sat, 16 Jan 2016 22:17:10 +0000
parents eca28d47b52e
children 505f4ce0d864
line wrap: on
line source

sep="/"; [[ "$0" == *//* ]] && sep="//"; [[ "$1" == ?*"$sep"* ]] || exit 1; key="$(echo "${1%%$sep*}" | lowercase)"; value="${1#*$sep}"; echo "$value" > "wisdom/$key" && echo "Learned «$key»"