changeset 5046:b2d3e73889a9

<oerjan> sed -i \'6cecho -n "Learned \'"\'"\'$topic\'"\'"\': *cat "wisdom/$topic"\' bin/learn_append
author HackBot
date Fri, 10 Oct 2014 11:43:31 +0000
parents 84864da646b0
children 4c440ec17bf2
files bin/learn_append
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn_append	Fri Oct 10 11:40:48 2014 +0000
+++ b/bin/learn_append	Fri Oct 10 11:43:31 2014 +0000
@@ -3,4 +3,4 @@
 stuff=$(echo "$1" | cut -d' ' -f2-)
 perl -i -p -e 's/\n/ /' "wisdom/$topic"
 echo "$stuff" >>"wisdom/$topic"
-echo "I knew that."
+echo -n "Learned '$topic': *cat "wisdom/$topic"