view bin/learn_append @ 4890:ea1a79eac3a3

<mroman_> mv -f raw.txt bin/learn_append
author HackBot
date Fri, 26 Sep 2014 13:32:49 +0000
parents 543f615e8a42
children 9f07ce51c124
line wrap: on
line source

#!/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."