Mercurial > repo
changeset 4173:88d05b052b66
<oerjan> sed -i \'2s!sed.*!sed \'\\\'\'s/^`\\\\(a|the\\\\) //;s/[Ss]\\? .*//\'\\\'\')!\' bin/learn
author | HackBot |
---|---|
date | Wed, 11 Dec 2013 01:20:37 +0000 |
parents | e482b4fdcac2 |
children | 4931255234a2 |
files | bin/learn |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/learn Wed Dec 11 01:12:41 2013 +0000 +++ b/bin/learn Wed Dec 11 01:20:37 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/[Ss]? .*//') info=$(echo "$1" | sed 's/[^ ]* //') echo "$1" >"wisdom/$topic" echo "I knew that."