view bin/mislearn @ 12117:bd76992a2fec draft

<fizzie> fetch /hackenv/bin/delquote https://hack.esolangs.org/get/bin/delquote
author HackEso <hackeso@esolangs.org>
date Sat, 16 Nov 2019 23:08:24 +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"