Random words


A huge list of words is available in /usr/share/dict/words on both MacOS and Linux.

To get a few random ones, use shuf (on MacOS: gshuf):

WORDS=$(shuf -n2 /usr/share/dict/words | tr '\n' ' ')

Date: 2018-06-08

Tags:  bash

Share: