#!/bin/bash
# Random password generator for installation database and user etc...
PASS=`cat /dev/urandom |tr -dc A-Za-z0-9| (head -c $1 > /dev/null 2>&1 || head -c 8)`
B=$(printf "%0.s*" {1..27})
echo -e "$B\n* random password: $PASS\n$B"
