view bin/mislearn @ 8434:0093b663b08f

<shachaf> sled bin/lastfiles//s/....$/-- "$@"/
author HackBot
date Fri, 10 Jun 2016 03:04:05 +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"