view bin/mislearn @ 6774:5b339aa9cd79

<hppavilion[1]> ` cp bin/learn bin/mislearn
author HackBot
date Wed, 10 Feb 2016 05:53:40 +0000
parents
children d4e5edb3022f
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"