Mercurial > repo
changeset 5044:301d8fcdf2b3
<oerjan> sed -i \'6cecho -n "Learned \'"\'"\'$topic\'"\'"\': "\\\'"\\n"\'cat "wisdom/$topic"\' bin/learn_append
author | HackBot |
---|---|
date | Fri, 10 Oct 2014 11:39:30 +0000 |
parents | 1fb4c1cc0fb9 |
children | 84864da646b0 |
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:32:38 2014 +0000 +++ b/bin/learn_append Fri Oct 10 11:39:30 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': "\ncat "wisdom/$topic"