Is user in dialout group?
12:42 01 Apr 2016

In my script I need to find out whether user is in dialout group and if he is not, add him to the group. I have found out how to add him but is there a way how to know if he is in the group ?

bash ubuntu debian