How to Find Out if the User Name is Already Exists Shell Script
This post describe how to find out whether the user name is exist in your system using shell script.
Create a file name checkuser.sh and give execute permission,
echo " Enter the User Name : "
if id -u $USR_NAME >/dev/null 2>&1; then
echo "The User Name is Already Exist, Give Different Name"
If the user name is does not exist create a new user.