view bin/learn @ 6147:d4aebeacae03

<oerjan> ` sed -i \'s/[[]/[:;/\' bin/learn
author HackBot
date Mon, 26 Oct 2015 05:00:10 +0000
parents c20d4be5afa6
children efa261b3fed0
line wrap: on
line source

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