Generate Random Text based on Length

$ genRandomText() { local n=$1; while [ $((n--)) -gt 0 ]; do printf "x$(printf %x $((RANDOM % 26 + 65)))" ; done ; echo ; }

commandlinefu.com

Diff your entire server config at ScriptRock.com

Read More here.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.