Mercurial > repo
view bin/slashlearn @ 6394:a4fca7594a0e
<FireFly> le/rn Bride theory/Bride theory is a theory involving a headhunter who dresses in yellow
author | HackBot |
---|---|
date | Thu, 17 Dec 2015 02:10:11 +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»"