Mercurial > repo
changeset 4203:e87d36fd991f
<oerjan> sed -i \'2s/?/\\\\?/\' bin/learn # missed one
author | HackBot |
---|---|
date | Thu, 19 Dec 2013 21:03:48 +0000 |
parents | 122f6865ca41 |
children | 59ead7c90aeb |
files | bin/learn |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/learn Thu Dec 19 21:03:11 2013 +0000 +++ b/bin/learn Thu Dec 19 21:03:48 2013 +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\? .*//') info=$(echo "$1" | sed 's/[^ ]* //') echo "$1" >"wisdom/$topic" echo "I knew that."