comparison 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
comparison
equal deleted inserted replaced
6773:9f628b9fbc24 6774:5b339aa9cd79
1 #!/bin/bash
2 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[:;,.!?]\? .*//')
3 echo "$1" >"wisdom/$topic"
4 echo "Learned '$topic': $1"
5