Linux CLI - Users and Groups
You want to write a script that lists all users who have a valid login shell (not
/usr/sbin/nologin or /bin/false) by reading /etc/passwd. Which command snippet correctly filters these users?