# HG changeset patch # User HackBot # Date 1412941170 0 # Node ID 301d8fcdf2b3e1046ee5046a714a61e744fe3ba9 # Parent 1fb4c1cc0fb9c1ab1810be8fff095633e5f1e27e sed -i \'6cecho -n "Learned \'"\'"\'$topic\'"\'"\': "\\\'"\\n"\'cat "wisdom/$topic"\' bin/learn_append diff -r 1fb4c1cc0fb9 -r 301d8fcdf2b3 bin/learn_append --- a/bin/learn_append Fri Oct 10 11:32:38 2014 +0000 +++ b/bin/learn_append Fri Oct 10 11:39:30 2014 +0000 @@ -3,4 +3,4 @@ stuff=$(echo "$1" | cut -d' ' -f2-) perl -i -p -e 's/\n/ /' "wisdom/$topic" echo "$stuff" >>"wisdom/$topic" -echo "I knew that." +echo -n "Learned '$topic': "\ncat "wisdom/$topic"