I have a server running where I use php to run a bash script to verify certain information of a user. For example, I have a webhosting server set up, and in order to be able to
Using the zero delimiter to split by lines:
id -nGz user | tr '\0' '\n' | grep '^group$'