Mercurial > repo
changeset 5003:8d2b2b7ca563
<oerjan> revert 4999
author | HackBot |
---|---|
date | Thu, 02 Oct 2014 04:11:20 +0000 |
parents | e73f03ccbcd3 |
children | a328f30bc290 |
files | bin/learn_append |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/learn_append Thu Oct 02 04:11:20 2014 +0000 @@ -0,0 +1,6 @@ +#!/bin/bash +topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') +stuff=$(echo "$1" | cut -d' ' -f2-) +perl -i -p -e 's/\n/ /' "wisdom/$topic" +echo "$stuff" >>"wisdom/$topic" +echo "I knew that."