Mercurial > repo
changeset 4201:d900b01a2c86
<oerjan> sed -i \'2s/[(]a/(an\\?/\' bin/learn # missed one
author | HackBot |
---|---|
date | Thu, 19 Dec 2013 21:02:19 +0000 |
parents | ed818e3e44da |
children | 122f6865ca41 |
files | bin/learn |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/learn Thu Dec 19 11:05:43 2013 +0000 +++ b/bin/learn Thu Dec 19 21:02:19 2013 +0000 @@ -1,5 +1,5 @@ #!/bin/bash -topic=$(echo "$1" | lowercase | sed 's/^\(a\|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."