Mercurial > repo
changeset 8639:7b6c390eaef6
<oerjan> sled bin/wisdom//s/[{}1,,[}]/(echo "$1" | lowercase)/
author | HackBot |
---|---|
date | Tue, 28 Jun 2016 23:50:06 +0000 |
parents | 0c8c5d021bf0 |
children | 21c571ebfde2 |
files | bin/wisdom |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/wisdom Tue Jun 28 20:35:44 2016 +0000 +++ b/bin/wisdom Tue Jun 28 23:50:06 2016 +0000 @@ -1,1 +1,1 @@ -f="$(find wisdom -path "wisdom/*${1,,}*" -type f -print0 | shuf -z -n1)"; echo -n "${f#wisdom/}//" | rnooodl; rnooodl < "$f" +f="$(find wisdom -path "wisdom/*$(echo "$1" | lowercase)1,,}*" -type f -print0 | shuf -z -n1)"; echo -n "${f#wisdom/}//" | rnooodl; rnooodl < "$f"