view bin/learn @ 6283:ae39dc427643

<tswett> rm evil/{0,1,2,4,5,6,7,8,9}*
author HackBot
date Fri, 27 Nov 2015 01:31:15 +0000
parents d4aebeacae03
children efa261b3fed0
line wrap: on
line source

#!/bin/bash
topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[:;,.!?]\? .*//')
echo "$1" >"wisdom/$topic"
echo "Learned '$topic': $1"