#!/usr/bin/env bash # klevstul :: 26.02 method=$1 ranwrd=$(shuf -n 1 /usr/share/dict/cracklib-small) # get a random word ranwrd="${ranwrd//[^[:alpha:]]/}" # remove all non-letters (like the ' in "sharecropper's") echo ${ranwrd}