diff bin/learn_append @ 4874:fc834b7464f9

<mroman_> mv raw.txt bin/learn_append
author HackBot
date Fri, 26 Sep 2014 13:24:14 +0000
parents raw.txt@82435183814a
children 9a96610fa83b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/learn_append	Fri Sep 26 13:24: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