view bin/learn_append2 @ 9224:996cd3d8331a

<oerjan> sled bin/slwd//s,$, | sed \'s/^Rosebud!$/Roswbud!/\',
author HackBot
date Mon, 10 Oct 2016 23:41:00 +0000
parents 56dcce63901b
children
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."