changeset 4890:ea1a79eac3a3

<mroman_> mv -f raw.txt bin/learn_append
author HackBot
date Fri, 26 Sep 2014 13:32:49 +0000
parents 03388a1ceac3
children 7e1e5b7f63ee
files bin/learn_append raw.txt
diffstat 2 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn_append	Fri Sep 26 13:32:45 2014 +0000
+++ b/bin/learn_append	Fri Sep 26 13:32:49 2014 +0000
@@ -1,4 +1,5 @@
 #!/bin/bash
 topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
-echo "$1" >>"wisdom/$topic"
+stuff=$(echo "$1" | cut -d' ' -f2-)
+echo "$stuff" >>"wisdom/$topic"
 echo "I knew that."
--- a/raw.txt	Fri Sep 26 13:32:45 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-#!/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."