# HG changeset patch # User HackBot # Date 1455083620 0 # Node ID 5b339aa9cd79c0652f4853cd70faae5d64c76e8b # Parent 9f628b9fbc24201a57b6f6be48dd4f95e9470cc1 ` cp bin/learn bin/mislearn diff -r 9f628b9fbc24 -r 5b339aa9cd79 bin/mislearn --- /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" +