Mercurial > repo
changeset 4964:fd2b9bd218db
<oerjan> revert 4949
author | HackBot |
---|---|
date | Tue, 30 Sep 2014 06:08:53 +0000 |
parents | b8882fb9c7a4 |
children | 73e248293897 |
files | bin/learn_append wisdom/test |
diffstat | 2 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/learn_append Tue Sep 30 06:07:32 2014 +0000 +++ b/bin/learn_append Tue Sep 30 06:08:53 2014 +0000 @@ -1,9 +1,5 @@ #!/bin/bash topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') stuff=$(echo "$1" | cut -d' ' -f2-) -perl -i -p -e 's/ -/ /' "wisdom/$topic" -/ /' "wisdom/$topic" -//' "wisdom/$topic" echo "$stuff" >>"wisdom/$topic" echo "I knew that."