# HG changeset patch # User HackBot # Date 1411738039 0 # Node ID ea441e220c71abf372f8d1a52f1b29e0307b242b # Parent 5adb9116fb4519e2ce59804b46a48f05150b3181 mv -f raw.txt bin/learn_append diff -r 5adb9116fb45 -r ea441e220c71 bin/learn_append --- a/bin/learn_append Fri Sep 26 13:27:10 2014 +0000 +++ b/bin/learn_append Fri Sep 26 13:27:19 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 diff -r 5adb9116fb45 -r ea441e220c71 raw.txt --- a/raw.txt Fri Sep 26 13:27:10 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -#!/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