Originally Posted by TenTenths
So what have you written so far?
What is your expected output?
for u in $users
if $(awk '/$u/' /etc/passwd )
if $(awk '/$u/' /etc/passwd -eq 1)
echo -e $(grep $u /etc/passwd)
my expected output is non-matched user (Defined user group - local user) should be shown.