Mercurial > repo
changeset 4175:3f52a230f962
<oerjan> sed -i \'2s!sed.*!sed \'\\\'\'s/^\\\\(a|the\\\\) //;s/[Ss]\\? .*//\'\\\'\')!\' bin/learn
author | HackBot |
---|---|
date | Wed, 11 Dec 2013 01:21:46 +0000 |
parents | 4931255234a2 |
children | f7ac532f6fc4 |
files | bin/learn |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/learn Wed Dec 11 01:21:31 2013 +0000 +++ b/bin/learn Wed Dec 11 01:21:46 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."