Mercurial > repo
changeset 5047:4c440ec17bf2
<oerjan> sed -i \'6s/[*]/"\\n/\' bin/learn_append
author | HackBot |
---|---|
date | Fri, 10 Oct 2014 11:44:07 +0000 |
parents | b2d3e73889a9 |
children | 40a0e46d2cef |
files | bin/learn_append |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/learn_append Fri Oct 10 11:43:31 2014 +0000 +++ b/bin/learn_append Fri Oct 10 11:44:07 2014 +0000 @@ -3,4 +3,5 @@ stuff=$(echo "$1" | cut -d' ' -f2-) perl -i -p -e 's/\n/ /' "wisdom/$topic" echo "$stuff" >>"wisdom/$topic" -echo -n "Learned '$topic': *cat "wisdom/$topic" +echo -n "Learned '$topic': " +cat "wisdom/$topic"