changeset 4889:03388a1ceac3

<mroman_> fetch http://mroman.ch/raw.txt
author HackBot
date Fri, 26 Sep 2014 13:32:45 +0000
parents 054963a31d55
children ea1a79eac3a3
files raw.txt
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/raw.txt	Fri Sep 26 13:32:45 2014 +0000
@@ -0,0 +1,5 @@
+#!/bin/bash
+topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
+stuff=$(echo "$1" | cut -d' ' -f2-)
+echo "$stuff" >>"wisdom/$topic"
+echo "I knew that."