Hi Im not any sort of programmer but found myself creating an install script which installs mySQL which works fine. I would like to improve the script by asking the user to enter text that will be used for a password.
My understanding is that a reasonable way of doing this would be to use the 'echo' and 'read' commands to obtain their input and then I would like to check that only standard alpha numeric characters are used and if not ask the user to try again. I have not been able to understanding grep or piping so am asking if anyone would be willing to write it in a way that I might just drop it into a bash script.
Hoping ns