view bin/mislearn @ 12280:1c5330229fcf draft

<oerjan> learn The password of the month is only if lambda is a macro
author HackEso <hackeso@esolangs.org>
date Wed, 01 Jan 2020 02:18:55 +0000
parents 9c7bd01f6d39
children
line wrap: on
line source

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