#!/bin/bash
# bash generate random alphanumeric string
#
# TODO add params
mail_tail="@mailinator.com"
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
rand_email_name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
rand_mail_full=$rand_email_name$mail_tail;
COUNTER=0
while [ $COUNTER -lt 1000 ]; do
rand_email_name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
rand_mail_full=$rand_email_name$mail_tail;
echo $rand_mail_full
let COUNTER=COUNTER+1
done
RUN:
rand_email > list_1k_email
Need more refine to use params
# bash generate random alphanumeric string
#
# TODO add params
mail_tail="@mailinator.com"
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
rand_email_name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
rand_mail_full=$rand_email_name$mail_tail;
COUNTER=0
while [ $COUNTER -lt 1000 ]; do
rand_email_name=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
rand_mail_full=$rand_email_name$mail_tail;
echo $rand_mail_full
let COUNTER=COUNTER+1
done
RUN:
rand_email > list_1k_email
Need more refine to use params
Comments
Post a Comment