For moderator: I made a new thread in a proper part of the forum now
https://www.unix.com/homework-coursework-questions/137119-user-processes.html
But now i wan't to make something which isn't related to a homework, so i hope
you won't close this one. Thanks to those two answers, you helped me!
I would like to write a prog which can test the strength of password
It should check the length of password, it should be longer than 8 characters,
it must contain 2 numbers [0-9]
and some special signs like @,%,$
and of course typical alphabet from [A-z]
with which function can i limit the minimum pass length
---------- Post updated at 03:11 PM ---------- Previous update was at 11:04 AM ----------
hmm guess i have to work it out myself
---------- Post updated at 05:51 PM ---------- Previous update was at 03:11 PM ----------
Ok i have done everything by now, the only thing thats bugging me is how can i check how many
numbers a string contains, it should have at least two.
if [ $pass =~ [0-9]+ ]; then
but this gives me just one or more
I need an advice, please