changeset 6142:23da73664984

<oerjan> ` sed -i \'s/[?] /?[,.!?]\\? /\' bin/learn
author HackBot
date Mon, 26 Oct 2015 04:57:46 +0000
parents 2a6fa894defb
children 3ba33322fa81
files bin/learn
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn	Mon Oct 26 04:46:18 2015 +0000
+++ b/bin/learn	Mon Oct 26 04:57:46 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"