view bin/learn @ 4421:114398f3b359

<kmc> printf \'echo "$1" | /hackenv/lib/cdecl\\n\' > bin/cdecl && chmod +x bin/cdecl
author HackBot
date Sun, 09 Feb 2014 02:02:01 +0000
parents 02be2e278897
children 03afb1619ef2
line wrap: on
line source

#!/bin/bash
topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//')
echo "$1" >"wisdom/$topic"
echo "I knew that."