Mercurial > repo
view bin/slashlearn @ 5978:3450eade96b7
<oerjan> ` sed -i \'s/and //;s/genders./genders, and voluminous but calm eyebrows./\' wisdom/taneb
author | HackBot |
---|---|
date | Sun, 13 Sep 2015 22:25:41 +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»"