Hacker News new | ask | show | jobs
by archgoon 2376 days ago
shuf -n 4 /usr/share/dict/words | tr '\n' ' ' && echo
1 comments

Thanks! 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.