I have this read
operation:
read -p "Please enter your name:" username
How could I verify the users name, in one line?
If it's not possible in a sane way in one line, maybe a Bash function putted inside a variable is a decent solution?
Name is just an example, it could be a password or any other common form value.
Verifying means here: Requesting the user to insert the name twice and to ensure the two values are the same.