Sorting group information for accounts

view full story

http://www.unix.com – I have an input file that contains the primary and secondary groups a user should have based on a pre-defined role. The input file looks like this: Code: <user_login>|<comment_field>|<role> After I execute my script to do some grepping I have the following user file where the secondary groups are defined by the role: Code: <user_login>|<dir_path_set_by_role>|<shell_set_by_role>|<primary_GID>|<secondary_GID>|<secondary_GID>|<secondary_GID>|... The problem I have is that GID's must be resolved to their group name and then (HowTos)