script to ignore the user from list of users

Hi,

I have a situation where I want to ignore few users from list of users and print rest of user in log file.

say, I want to ignore aaa, bbb, ccc, ddd .. ppp from list of 20 user (do not want to include)

What is the good command or any script?

Thanks in advance.

Put exclude users in a file (1 per line) and use

grep -Fvf exclude_users.txt  userlist.txt