Mercurial > repo
changeset 9858:fc0b936bfb57
<oerjan> sled bin/slashlearn//$s,[/] , ,
author | HackBot |
---|---|
date | Mon, 05 Dec 2016 01:51:33 +0000 |
parents | eee3c706c9e7 |
children | d8431f54a2f4 |
files | bin/slashlearn |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/slashlearn Mon Dec 05 01:49:05 2016 +0000 +++ b/bin/slashlearn Mon Dec 05 01:51:33 2016 +0000 @@ -3,4 +3,4 @@ key="$(echo "${1%%$sep*}" | lowercase)" value="${1#*$sep}" [ -e "wisdom/$key" ] && verb="Relearned" || verb="Learned" -echo "$value" > "$(echo-p "wisdom/$key")" && echo -n "$verb '$key': $(echo "$value" | sed 's.^[/ ].0,04&.')" +echo "$value" > "$(echo-p "wisdom/$key")" && echo -n "$verb '$key': $(echo "$value" | sed 's.^[ ].0,04&.')"