Mercurial > repo
view bin/learn @ 12131:138d7dafc5b1 draft
<fizzie> slbd hello-world-in-any-language//s|hw/|${HACKENV-/hackenv}/hw/|g
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 17 Nov 2019 01:26:58 +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"