Mercurial > repo
view bin/learn @ 12480:0d2ed32da981 draft
<b_jonas> slashlearn password//The password of the month is If the door to Ambrosia will not open by this music, I will TEAR IT DOWN!
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 03 May 2023 20:48:13 +0000 |
parents | 148a9eb1caa3 |
children |
line wrap: on
line source
#!/bin/bash topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\?[:;,.!?]\? .*//') [ -e "$HACKENV/wisdom/$topic" ] && verb="Relearned" || verb="Learned" echo "$1" >"$(echo-p "$HACKENV/wisdom/$topic")" echo "$verb '$topic': $1"