view bin/learn_append @ 4875:3e891a84ef8b

<mroman_> chmod +x bin/learn_append
author HackBot
date Fri, 26 Sep 2014 13:24:19 +0000
parents fc834b7464f9
children 9a96610fa83b
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."