changeset 6147:d4aebeacae03

<oerjan> ` sed -i \'s/[[]/[:;/\' bin/learn
author HackBot
date Mon, 26 Oct 2015 05:00:10 +0000
parents 4334885722c8
children 0b9cb593312e
files bin/learn
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn	Mon Oct 26 04:59:02 2015 +0000
+++ b/bin/learn	Mon Oct 26 05:00:10 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"