# HG changeset patch # User HackBot # Date 1412035927 0 # Node ID e0f2e3b3a5b9a7449273f02cba1ab7785b77a347 # Parent 9e1eab34dcfe1c1054254a2085275d393712ba65 sed -i -e \'4afmt -w1000 "wisdom/$topic"\' -e \'s/[$]stuff/ $stuff/\' bin/learn_append diff -r 9e1eab34dcfe -r e0f2e3b3a5b9 bin/learn_append --- a/bin/learn_append Tue Sep 30 00:11:50 2014 +0000 +++ b/bin/learn_append Tue Sep 30 00:12:07 2014 +0000 @@ -1,5 +1,6 @@ #!/bin/bash topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') stuff=$(echo "$1" | cut -d' ' -f2-) -echo "$stuff" >>"wisdom/$topic" +echo " $stuff" >>"wisdom/$topic" +fmt -w1000 "wisdom/$topic" echo "I knew that."