Mercurial > repo
changeset 8513:fd485700e2e3
<oerjan> sled bin/wisdom//s/type f/type f -print0/;s/shuf/shuf -z/
author | HackBot |
---|---|
date | Fri, 17 Jun 2016 09:12:30 +0000 |
parents | 5d8a81777365 |
children | dadac04ddd97 |
files | bin/wisdom |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/wisdom Fri Jun 17 08:53:03 2016 +0000 +++ b/bin/wisdom Fri Jun 17 09:12:30 2016 +0000 @@ -1,1 +1,1 @@ -F="$(find wisdom -name "*$(echo "$1" | lowercase)*" -type f | shuf -n1)"; echo -n "${F#wisdom/}//" | rnooodl; cat "$F" | rnooodl +F="$(find wisdom -name "*$(echo "$1" | lowercase)*" -type f -print0 | shuf -z -n1)"; echo -n "${F#wisdom/}//" | rnooodl; cat "$F" | rnooodl