I'm trying to achieve the following:
List my Linux users, that have set bin/bash in /etc/passwd AND append each user's info from id [username]
into the print statement, something in the lines of:
cat /etc/passwd | grep bin/bash | awk -F\: '{print $1";"$(id $1)}'
(which obviously does not work ;) )
I've got the feeling that I'm pretty close; what am I missing?
Output is supposed to be (see DavDav's comment):
User1;uid=1000(User1) gid=1000(User1) groups=1000(User1)
User2;uid=1001(User2) gid=1001(User2) groups=1001(User2)
User3;uid=1002(User3) gid=1002(User3) groups=1002(User3)