view bin/learn_append @ 4953:cac1ae3999eb

<oerjan> revert
author HackBot
date Tue, 30 Sep 2014 05:51:24 +0000
parents c59c43efc84d
children 874b5aabab32
line wrap: on
line source

#!/bin/bash
topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
stuff=$(echo "$1" | cut -d' ' -f2-)
echo "$stuff" >>"wisdom/$topic"
echo "I knew that."