changeset 4177:f2f2e475c347

<oerjan> sed -i \'2s!sed.*!sed \'\\\'\'s/^\\\\(a\\\\|the\\\\) //;s/s\\\\? .*//\'\\\'\')!\' bin/learn
author HackBot
date Wed, 11 Dec 2013 01:27:53 +0000
parents f7ac532f6fc4
children a4d6f3d2a1df
files bin/learn
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn	Wed Dec 11 01:23:20 2013 +0000
+++ b/bin/learn	Wed Dec 11 01:27:53 2013 +0000
@@ -1,5 +1,5 @@
 #!/bin/bash
-topic=$(echo "$1" | lowercase | sed 's/^\(a|the\) //;s/[Ss]? .*//')
+topic=$(echo "$1" | lowercase | sed 's/^\(a\|the\) //;s/s\? .*//')
 info=$(echo "$1" | sed 's/[^ ]* //')
 echo "$1" >"wisdom/$topic"
 echo "I knew that."