annotate bin/wisdom @ 12268:6bbbe2a95120 draft

<b_jonas> slashlearn euclid//Euclid is a short geeky game in which the goal is to do Euclidean compass and straightedge constructions in as few steps as possible. It runs in the browser, found at "http://www.euclidthegame.com/". It was popular among #esoteric regulars in 2016-07.
author HackEso <hackeso@esolangs.org>
date Mon, 16 Dec 2019 23:02:52 +0000
parents 34478fd0398b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11466
602a161bac23 <oerjan> sled bin/wisdom//1i#!/bin/sh
HackEso <hackeso@esolangs.org>
parents: 11172
diff changeset
1 #!/bin/sh
12071
34478fd0398b <fizzie> sled /hackenv/bin/wisdom//s|wisdom|$HACKENV/wisdom|g
HackEso <hackeso@esolangs.org>
parents: 11466
diff changeset
2 f=$(find $HACKENV/wisdom -ipath "$HACKENV/wisdom/*$1*" -type f -print0 | shuf --random-source=/dev/urandom -z -n1); if [ -n "$f" ]; then echo -n "${f#$HACKENV/wisdom/}//"; cat "$f"; else echo "That's not wise."; fi | rnooodl