Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while [[ $REPLY != 0 ]]; do
- read -p "Enter selection [1-10] "
- if [[ $REPLY =~ ^[1-10]$ ]]; then
- if [[ $REPLY == 1 ]]; then
- read -p "Diavase to email: " email
- while [ $email -ne ^"[a-z0-9A-Z][a-z0-9A-Z*+/=?^_{|}~-]+@[a-z0-9]+\.[a-zA-Z]"$ ]; do
- read -p "Ksanadiavase to email: " email
- echo $email
- touch active_users
- read -p "Dwse to username" username
- done
- fi
- else
- echo "Invalid entry"
- fi
- done
- echo "Program ends!!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement