view bin/mislearn @ 7556:9a866d5328dc

<Moon_> mkx scriptadd//print_args_or_input "$@" >> script
author HackBot
date Wed, 27 Apr 2016 23:10:10 +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"