annotate paste/paste.26175 @ 12263:7829671dc5b3 draft

<b_jonas> addwhatis randquote(1hackeso) - print a random quote matching a regular expression
author HackEso <hackeso@esolangs.org>
date Sun, 08 Dec 2019 00:31:29 +0000
parents e037173e0012
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e037173e0012 Initial import.
HackBot
parents:
diff changeset
1 #!/bin/sh
e037173e0012 Initial import.
HackBot
parents:
diff changeset
2 topic=$(echo "$1" | tr A-Z a-z)
e037173e0012 Initial import.
HackBot
parents:
diff changeset
3 [ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; }
e037173e0012 Initial import.
HackBot
parents:
diff changeset
4 cat "wisdom/$topic"
e037173e0012 Initial import.
HackBot
parents:
diff changeset
5