# HG changeset patch # User HackBot # Date 1411738369 0 # Node ID ea1a79eac3a301f28ee3a79652c0350617ea8144 # Parent 03388a1ceac335d86eb2e34a110976e24efc3719 mv -f raw.txt bin/learn_append diff -r 03388a1ceac3 -r ea1a79eac3a3 bin/learn_append --- a/bin/learn_append Fri Sep 26 13:32:45 2014 +0000 +++ b/bin/learn_append Fri Sep 26 13:32:49 2014 +0000 @@ -1,4 +1,5 @@ #!/bin/bash topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') -echo "$1" >>"wisdom/$topic" +stuff=$(echo "$1" | cut -d' ' -f2-) +echo "$stuff" >>"wisdom/$topic" echo "I knew that." diff -r 03388a1ceac3 -r ea1a79eac3a3 raw.txt --- a/raw.txt Fri Sep 26 13:32:45 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -#!/bin/bash -topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') -stuff=$(echo "$1" | cut -d' ' -f2-) -echo "$stuff" >>"wisdom/$topic" -echo "I knew that."