# HG changeset patch # User HackBot # Date 1386725273 0 # Node ID f2f2e475c347f67b900a41ceda420a3081567022 # Parent f7ac532f6fc488dd55245593c94ecc3204010810 sed -i \'2s!sed.*!sed \'\\\'\'s/^\\\\(a\\\\|the\\\\) //;s/s\\\\? .*//\'\\\'\')!\' bin/learn diff -r f7ac532f6fc4 -r f2f2e475c347 bin/learn --- a/bin/learn Wed Dec 11 01:23:20 2013 +0000 +++ b/bin/learn Wed Dec 11 01:27:53 2013 +0000 @@ -1,5 +1,5 @@ #!/bin/bash -topic=$(echo "$1" | lowercase | sed 's/^\(a|the\) //;s/[Ss]? .*//') +topic=$(echo "$1" | lowercase | sed 's/^\(a\|the\) //;s/s\? .*//') info=$(echo "$1" | sed 's/[^ ]* //') echo "$1" >"wisdom/$topic" echo "I knew that."