changeset 4938:91ef7dc9bbf4

<oerjan> sed -i -e \'4afmt -w1000 "wisdom/$topic"\' bin/learn_append
author HackBot
date Tue, 30 Sep 2014 00:13:03 +0000
parents 71e7f7d66f28
children 49903ec2c7f0
files bin/learn_append
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn_append	Tue Sep 30 00:12:50 2014 +0000
+++ b/bin/learn_append	Tue Sep 30 00:13:03 2014 +0000
@@ -2,4 +2,5 @@
 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
 stuff=$(echo "$1" | cut -d' ' -f2-)
 echo "$stuff" >>"wisdom/$topic"
+fmt -w1000 "wisdom/$topic"
 echo "I knew that."