view bin/learn_append2 @ 5205:6b7474824ec6

<Taneb> ` echo "#!/bin/sh" > bin/2014
author HackBot
date Wed, 31 Dec 2014 20:24:53 +0000
parents c37b8874cc48
children
line wrap: on
line source

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