#!/bin/bash # Under RedHat / Centos if [ $# -gt 0 ] then MIN=$1 else MIN=8 fi DEL=`expr $RANDOM % 5` LEN=`expr $MIN + $DEL` cat /dev/urandom | tr -dc “a-zA-Z0-9@#*=[]” | dd bs=$LEN count=1 2>/dev/null echo;
{ 0 comments }
Posts tagged as:
#!/bin/bash # Under RedHat / Centos if [ $# -gt 0 ] then MIN=$1 else MIN=8 fi DEL=`expr $RANDOM % 5` LEN=`expr $MIN + $DEL` cat /dev/urandom | tr -dc “a-zA-Z0-9@#*=[]” | dd bs=$LEN count=1 2>/dev/null echo;
{ 0 comments }