# HG changeset patch # User HackBot # Date 1412223080 0 # Node ID 8d2b2b7ca563943f49804098d5bc225df8b83f75 # Parent e73f03ccbcd367cc8aa2bf27a5e5219a0a81ef0d revert 4999 diff -r e73f03ccbcd3 -r 8d2b2b7ca563 bin/learn_append --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/learn_append Thu Oct 02 04:11:20 2014 +0000 @@ -0,0 +1,6 @@ +#!/bin/bash +topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') +stuff=$(echo "$1" | cut -d' ' -f2-) +perl -i -p -e 's/\n/ /' "wisdom/$topic" +echo "$stuff" >>"wisdom/$topic" +echo "I knew that."