view bin/wisdom @ 10256:d0d5bc896d19

<oerjan> sled bin/?//3itopic1=$(echo \'`\'"$topic" | sed \'s/^``//\')
author HackBot
date Wed, 15 Feb 2017 01:19:03 +0000
parents dbe661460e11
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