4 ms·
shuf -n 4 /usr/share/dict/words | tr '\n' ' ' && echo
by archgoon 7y ago
shuf -n 4 /usr/share/dict/words | tr '\n' ' ' && echo
- iudqnolq 7y agoThanks! I'm trying to learn bash, and it's going slow (right now still trying to fully understand set -euxo pipefail). I would not have guessed that a command existed to make random permutations, I was expecting an awk incantation.