# HG changeset patch # User HackBot # Date 1412940758 0 # Node ID 1fb4c1cc0fb9c1ab1810be8fff095633e5f1e27e # Parent cf82f194fa227cacfbd4d521ad176fc8e43d16b5 revert diff -r cf82f194fa22 -r 1fb4c1cc0fb9 bin/learn --- /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" +