How do i compare characters
I have a question on how to compare numbers like passlength
my question is the password policy requires a minimum length of 6 heres the following code that i used if grep '^PASSLENGTH=6' /etc/default/passwd then echo exception No else echo exception yes fi so what codes should i add so that it has PASSLENGTH =<6 Thanks in advance |
Maybe this:
Code:
if grep -q '^PASSLENGTH=[0-6]$' |
Tys that help alot
|
One last question if right after PASSLENGTH= if it is empty how should i write my code to make an exception
|
Quote:
|
All times are GMT -5. The time now is 02:03 AM. |