Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while [[ ! "$name" =~ ^([A-Z,a-z]+ [A-Z,a-z]+)$ ]]; do
- tput sc
- read -ep " Nombre y apellido (Nombre Apellido): " name
- tput rc
- tput ed
- done
- # Donde
- # ^([A-Z,a-z]+ [A-Z,a-z]+)$ → 2 strings compuesto por letras
Advertisement
Add Comment
Please, Sign In to add comment