changeset 5430:8c3a544b036c

<shachaf> ` echo \'F="$(find wisdom -type f | shuf | head -n1)"; echo -n "${F#wisdom/}/"; cat "$F"\' > bin/wisdom
author HackBot
date Sat, 06 Jun 2015 16:23:53 +0000
parents 021db8d79835
children ccbf91a9d8f0
files bin/wisdom
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/wisdom	Sat Jun 06 16:22:47 2015 +0000
+++ b/bin/wisdom	Sat Jun 06 16:23:53 2015 +0000
@@ -1,1 +1,1 @@
-N=$(find wisdom -type f | wc -l); F="$(find wisdom -type f | head -n $((RANDOM % N)) | tail -n1)"; echo -n "${F#wisdom/}/"; cat "$F"
+F="$(find wisdom -type f | shuf | head -n1)"; echo -n "${F#wisdom/}/"; cat "$F"