Mercurial > repo
view bin/randbin @ 11476:aa422ca91c37 draft
<oerjan> sled bin/randbin//1i#!/bin/dash
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Mon, 09 Apr 2018 00:58:05 +0100 |
parents | dccd9d1e0a00 |
children |
line wrap: on
line source
#!/bin/dash f=$(find bin -ipath "bin/*$1*" -type f -print0 | shuf -z -n1); if [ -n "$f" ]; then echo -n "${f#bin/}//"; grep '' "$f"; else echo "That's not binary."; fi | rnooodl