changeset 4954:874b5aabab32

<oerjan> sed -i "4ised -i \'y/"\'\\\\n\'"/ /\' "\'"wisdom/$topic"\' bin/learn_append
author HackBot
date Tue, 30 Sep 2014 05:51:57 +0000
parents cac1ae3999eb
children f3f7cf4814bc
files bin/learn_append
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn_append	Tue Sep 30 05:51:24 2014 +0000
+++ b/bin/learn_append	Tue Sep 30 05:51:57 2014 +0000
@@ -1,5 +1,6 @@
 #!/bin/bash
 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
 stuff=$(echo "$1" | cut -d' ' -f2-)
+sed -i 'y/\n/ /' "wisdom/$topic"
 echo "$stuff" >>"wisdom/$topic"
 echo "I knew that."