view bin/learn_append @ 4964:fd2b9bd218db

<oerjan> revert 4949
author HackBot
date Tue, 30 Sep 2014 06:08:53 +0000
parents 5dcb6a89dfac
children 73e248293897
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."