in reply to printing out users without home directories
This allows me to put all users into an array called @passwd_entries. How do I print out all users without /home directories?
(Fixed a couple of typos in updates.)
Cheers,
Rob
See -X and perlsyn.for(@passwd_entries) { print "/home/$_ does not exist\n" unless -d "/home/$_"; }
(Fixed a couple of typos in updates.)
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: printing out users without home directories
by haukex (Archbishop) on May 16, 2018 at 06:31 UTC | |
by syphilis (Archbishop) on May 16, 2018 at 08:24 UTC |
In Section
Seekers of Perl Wisdom