changeset 5043:1fb4c1cc0fb9

<oerjan> revert
author HackBot
date Fri, 10 Oct 2014 11:32:38 +0000
parents cf82f194fa22
children 301d8fcdf2b3
files bin/learn
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/learn	Fri Oct 10 11:32:38 2014 +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"
+