# HG changeset patch # User HackBot # Date 1411738154 0 # Node ID c37b8874cc4868cbb4d7252b72153a15075712e7 # Parent 2af66ab956ebba2ff693559823de2afbeafc374f sed -e \'s/^M//g\' bin/learn_append > bin/learn_append2 diff -r 2af66ab956eb -r c37b8874cc48 bin/learn_append2 --- a/bin/learn_append2 Fri Sep 26 13:28:44 2014 +0000 +++ b/bin/learn_append2 Fri Sep 26 13:29:14 2014 +0000 @@ -0,0 +1,4 @@ +#!/bin/bash +topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') +echo "$1" >>"wisdom/$topic" +echo "I knew that." \ No newline at end of file