Mercurial > repo
view bin/wisdom @ 9976:dbe661460e11
<oerjan> undo 9971
author | HackBot |
---|---|
date | Thu, 15 Dec 2016 01:26:46 +0000 |
parents | 374081f5fb18 |
children | c943ffcb5fef |
line wrap: on
line source
f=$(find wisdom -ipath "wisdom/*$1*" -type f -print0 | shuf --random-source=/dev/urandom -z -n1); if [ -n "$f" ]; then echo -n "${f#wisdom/}//"; cat "$f"; else echo "That's not wise."; fi | rnooodl