Mercurial > repo
view bin/learn @ 12339:dedac6ac7465 draft
<fizzie> ` learn \'A snake is just a directed vertical bridge in the negative orientation.\' # just to complement the entry on ladder
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Mon, 03 Aug 2020 18:01:39 +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"