Hi,
I have an variable that contains usernames
TMAIX = usernam1, unernam2, unsernam3 etc...
What I want to do if I have to add a new user on sudoers on the TMAIX I would like to check first if this new user already there (so for that I am using cat file|grep -q usernam and check $?) but I need help to add the new user at the end of the line...
Thanks in advance
Cheers
Al.
I have an variable that contains usernames
TMAIX = usernam1, unernam2, unsernam3 etc...
What I want to do if I have to add a new user on sudoers on the TMAIX I would like to check first if this new user already there (so for that I am using cat file|grep -q usernam and check $?) but I need help to add the new user at the end of the line...
Thanks in advance
Cheers
Al.