view bin/mislearn @ 6777:d4e5edb3022f

<hppavilion[1]> ` sed -i "s/wisdom/tmflry/" bin/mislearn
author HackBot
date Wed, 10 Feb 2016 06:02:40 +0000
parents 5b339aa9cd79
children 061734ba3033
line wrap: on
line source

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