# HG changeset patch # User HackBot # Date 1476399200 0 # Node ID a90ddb12b67c0fd2343b83563da5cfdd6d5f91d0 # Parent c2dc97e6b1d3a9785bb2f385fddafd3e22aee11a ` cp bin/{wisdom,randbin}; sled \'bin/randbin//s#wisdom#bin#g\' diff -r c2dc97e6b1d3 -r a90ddb12b67c bin/randbin --- a/bin/randbin Thu Oct 13 22:52:05 2016 +0000 +++ b/bin/randbin Thu Oct 13 22:53:20 2016 +0000 @@ -1,1 +1,1 @@ -grep -Hz '' bin/"$(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