view bin/mislearn @ 8625:fe5eac9ed8b5

<oerjan> rm quine
author HackBot
date Mon, 27 Jun 2016 23:55:23 +0000
parents 061734ba3033
children
line wrap: on
line source

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