changeset 4884:c37b8874cc48

<mroman_> sed -e \'s/^M//g\' bin/learn_append > bin/learn_append2
author HackBot
date Fri, 26 Sep 2014 13:29:14 +0000
parents 2af66ab956eb
children 4c79a954dfb3
files bin/learn_append2
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn_append2	Fri Sep 26 13:28:44 2014 +0000
+++ b/bin/learn_append2	Fri Sep 26 13:29:14 2014 +0000
@@ -0,0 +1,4 @@
+#!/bin/bash
+topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
+echo "$1" >>"wisdom/$topic"
+echo "I knew that."
\ No newline at end of file