view bin/learn @ 4422:0dd2430deb55

<kmc> printf \'echo "$1" | /hackenv/lib/c++decl\\n\' > bin/c++decl && chmod +x bin/c++decl
author HackBot
date Sun, 09 Feb 2014 02:02:26 +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."