view bin/randbin @ 9264:119c0d818128

<shachaf> ` cp bin/{wisdom,randbin}; sled \'bin/randbin//s#wisdom#bin#g\'
author HackBot
date Thu, 13 Oct 2016 22:37:06 +0000
parents cd07b743b78b
children d32852713e15
line wrap: on
line source

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