view bin/acronym @ 12263:7829671dc5b3 draft

<b_jonas> addwhatis randquote(1hackeso) - print a random quote matching a regular expression
author HackEso <hackeso@esolangs.org>
date Sun, 08 Dec 2019 00:31:29 +0000
parents 1730bda7af32
children
line wrap: on
line source

w="${1:-tla}"; (for (( i=0;i<${#w};i++ )); do grep -i "^${w:$i:1}[a-z]*\$" $HACKENV/share/dict-words | shuf -n 1; done) | xargs