I want to write a shell script that generates a list of users. for each user display the username and ID and all groups the user is a member of
it means like GROUPS command but for all users and with their id I used cat -d: -f1,3 /etc/passwd to show the users with their id but I don't know how can I use the groups for each line
would you please help me to write this script thanks