Mercurial > repo
changeset 8752:25c26dcdd1df
<oerjan> sled bin/learn//s,[>].wisdom..topic.,>"$(echo-p "wisdom/$topic")",
author | HackBot |
---|---|
date | Wed, 06 Jul 2016 01:02:30 +0000 |
parents | a376a5f16a94 |
children | 8c43a2d07d89 |
files | bin/learn |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/learn Tue Jul 05 23:41:33 2016 +0000 +++ b/bin/learn Wed Jul 06 01:02:30 2016 +0000 @@ -1,6 +1,6 @@ #!/bin/bash topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[:;,.!?]\? .*//') [ -e "wisdom/$topic" ] && verb="Relearned" || verb="Learned" -echo "$1" >"wisdom/$topic" +echo "$1" >"$(echo-p "wisdom/$topic")" echo "$verb '$topic': $1"