changeset 6774:5b339aa9cd79

<hppavilion[1]> ` cp bin/learn bin/mislearn
author HackBot
date Wed, 10 Feb 2016 05:53:40 +0000
parents 9f628b9fbc24
children 55714846c4a1
files bin/mislearn
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mislearn	Wed Feb 10 05:53:40 2016 +0000
@@ -0,0 +1,5 @@
+#!/bin/bash
+topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[:;,.!?]\? .*//')
+echo "$1" >"wisdom/$topic"
+echo "Learned '$topic': $1"
+