Mercurial > repo
changeset 9470:7f38c3d1c3a5
<oerjan> sled bin/slashlearn//7s![&].*!\\&\\& echo -n "$verb \'$key\': $(echo "$value" | sed \'s.^[/ ].\x030,04\\&\x0f.\')"!
author | HackBot |
---|---|
date | Thu, 27 Oct 2016 01:07:58 +0000 |
parents | b280efc73781 |
children | ec16025abc1e |
files | bin/slashlearn |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/slashlearn Thu Oct 27 01:07:05 2016 +0000 +++ b/bin/slashlearn Thu Oct 27 01:07:58 2016 +0000 @@ -4,4 +4,4 @@ key="$(echo "${1%%$sep*}" | lowercase)" value="${1#*$sep}" [ -e "wisdom/$key" ] && verb="Relearned" || verb="Learned" -echo "$value" > "$(echo-p "wisdom/$key")" && echo "$verb '$key': $value" +echo "$value" > "$(echo-p "wisdom/$key")" && echo -n "$verb '$key': $(echo "$value" | sed 's.^[/ ].0,04&.')"