Thanks for your replies there were a few useful suggestions. The simplest was
as follows :
if("`groups | grep groupname`" == "") then .....
I'd been trying this from the start but I forgot the single quotes (oops!)
Stephen. W. Barnett,
my question is: Is there any possibility for a group do be a Part of
an other group?
The group "Chiefs" should be part of the group "Employees".
Is this possible or have I add the username of the group chiefs to the