view bin/learn_append @ 4957:b59cee31b658

<oerjan> revert 4949
author HackBot
date Tue, 30 Sep 2014 06:00:23 +0000
parents 874b5aabab32
children 52a7f7c9dc4f
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."