Mercurial > repo
view bin/slashlearn @ 5997:742af1cad01d
<oren_> le/rn the/the Toe of Harriness\'s Enclosure
author | HackBot |
---|---|
date | Tue, 15 Sep 2015 23:27:25 +0000 |
parents | 9c603f748542 |
children | 73ffca368bac |
line wrap: on
line source
#!/bin/bash [[ "$1" = */* ]] || exit topic=$(echo "$1" | lowercase | cut -d / -f 1) [ -z "$topic" ] && exit 1 value=$(echo "$1" | cut -d / -f 2-) echo "$value" > wisdom/"$topic" && echo "Learned «$topic»"