#!/bin/sh i=0 while true; do let i=$i+1 dictionary="/usr/share/dict/linux.words" dl=($(wc -l $dictionary)) echo "dl --> $dl" echo -n "randowords #$i: " for j in $(seq 1 8); do head -n$(($(head -c4 /dev/urandom | od -An -tu4) % $dl)) $dictionary| tail -n1 done | xargs sleep $((RANDOM % 3600)) done