# HG changeset patch # User HackBot # Date 1476398226 0 # Node ID 119c0d81812881c50ec367a66d18c02263330cd2 # Parent 576a3c528f0c2ee0fad29f35cd5a921a66212eb8 ` cp bin/{wisdom,randbin}; sled \'bin/randbin//s#wisdom#bin#g\' diff -r 576a3c528f0c -r 119c0d818128 bin/randbin --- a/bin/randbin Thu Oct 13 22:34:03 2016 +0000 +++ b/bin/randbin Thu Oct 13 22:37:06 2016 +0000 @@ -1,1 +1,1 @@ -ls -1 bin | shuf -n 1 +f=$(find bin -ipath "bin/*$1*" -type f -print0 | shuf -z -n1); if [ -n "$f" ]; then echo -n "${f#bin/}//"; cat "$f"; else echo "That's not wise."; fi | rnooodl