open (USERS, '-|' , 'getent passwd' ) or die $!; @passwd_entries = <USERS>; close USERS;
This allows me to put all users into an array called @passwd_entries. How do I print out all users without /home directories?
In reply to printing out users without home directories by codeout
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |