Currently when I run a grep command on a visitors group that I had created
grep visitors:x:1011: /etc/group
This is a sample result of the above command, as the actual result is too long.
visitors:x:1011:ellipsiscoterie,magnetcommonest,wizardmeans,beakskeletal,lemonwellmade,ralphpaperclips etc..
How do I display the above result as shown below (without visitors:x:1101 and separating the commas), as I have difficulty doing so.
ellipsiscoterie
magnetcommonest
wizardmeans
beakskeletal
lemonwellmade
ralphpaperclips
getent
when I wrote my answer. I'd still useawk
to parse the output though, but still,getent
seems like the appropriate tool for this. – Footless