view bin/learn @ 4338:03d5e464183c

<oerjan> echo "echo Woof!" >bin/spot; chmod +x bin/spot
author HackBot
date Fri, 17 Jan 2014 01:53:57 +0000
parents e87d36fd991f
children 02be2e278897
line wrap: on
line source

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