Mercurial > repo
changeset 4934:9f07ce51c124
<oerjan> sed -i -e \'4afmt -w "wisdom/$topic"\' -e \'s/[$]stuff/ $stuff/\' bin/learn_append
author | HackBot |
---|---|
date | Tue, 30 Sep 2014 00:11:21 +0000 |
parents | bc96f77525d9 |
children | 9e1eab34dcfe |
files | bin/learn_append |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/learn_append Mon Sep 29 12:57:24 2014 +0000 +++ b/bin/learn_append Tue Sep 30 00:11:21 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 -w "wisdom/$topic" echo "I knew that."