view bin/learn_append @ 4937:71e7f7d66f28

<oerjan> revert
author HackBot
date Tue, 30 Sep 2014 00:12:50 +0000
parents e0f2e3b3a5b9
children 91ef7dc9bbf4
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."