I work for a company, who uses a third party tool to manage Unix accounts. I have been recently given a task to get a secondary groups for each user from bunch of servers. The tool offers various commands to query user information but it does not have a proper command to query secondary groups. So only option left for me is to capture the secondary groups from an output of command using grep/awk/sed statements . Here's how the output looks like :
Date for user "xyzuser":
This is a Linux Server and I want to be able to just capture only "webdeveloper" and "oracle-dba" files in proper way and output to a text file. I have tried lot of awk/sed commands ( not a expert
) but I had no luck.
I appreciate if anyone help me with this task. It will be huge help .