head -c8 /dev/random | uuencode -m - | sed -n '2s/=*$//;2p'
This prints psuedo "random" characters, for use as a password, for instance. The head command gets 16 bytes from the random device, uuencode flattens out the data to convert control characters into printable ascii and the sed magic at the end just gives a short string with none of the fluff from uuencode.
Sponsored by BlackBerry
BlackBerry® Enterprise Server Express enables businesses of any size to quickly and easily get started with the BlackBerry solution. It provides advanced BlackBerry smartphone features with no additional software or user license fees, and works with any Internet-enabled BlackBerry data plan or a BlackBerry enterprise data plan. Download now!