changeset 8636:32d6c7d06e26

<izabera> ` sed -i \'s/(echo "\\$1" | lowercase)/{1,,}/\' bin/wisdom
author HackBot
date Tue, 28 Jun 2016 20:33:44 +0000
parents 0ce4cdb31cce
children 7d6f25efe4af
files bin/wisdom
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/wisdom	Tue Jun 28 16:29:45 2016 +0000
+++ b/bin/wisdom	Tue Jun 28 20:33:44 2016 +0000
@@ -1,1 +1,1 @@
-F="$(find wisdom -path "wisdom/*$(echo "$1" | lowercase)*" -type f -print0 | shuf -z -n1)"; echo -n "${F#wisdom/}//" | rnooodl; cat "$F" | rnooodl
+F="$(find wisdom -path "wisdom/*${1,,}*" -type f -print0 | shuf -z -n1)"; echo -n "${F#wisdom/}//" | rnooodl; cat "$F" | rnooodl