view paste/paste.25005 @ 12047:800ffb613072 draft

<oerjan> learn `@ <nick> <command> [<argument>] is a wrapper for running a HackEso command with a "nick:" prepended.
author HackEso <hackeso@esolangs.org>
date Sat, 16 Nov 2019 04:27:39 +0000
parents e037173e0012
children
line wrap: on
line source

#!/bin/sh
topic=$(echo "$1" | tr A-Z a-z)
[ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; }
cat "wisdom/$topic"