changeset 6144:c20d4be5afa6

<oerjan> ` sed -i \'s/[?] /?[,.!?]\\\\? /\' bin/learn
author HackBot
date Mon, 26 Oct 2015 04:58:14 +0000
parents 3ba33322fa81
children d764b9c9ea99
files bin/learn
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn	Mon Oct 26 04:58:04 2015 +0000
+++ b/bin/learn	Mon Oct 26 04:58:14 2015 +0000
@@ -1,5 +1,5 @@
 #!/bin/bash
-topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
+topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[,.!?]\? .*//')
 echo "$1" >"wisdom/$topic"
 echo "Learned '$topic': $1"