+------------------------------------------------------------------------------ | On 2010-08-30 15:43:44, Daniel Pittman wrote: | | You probably want to note that this will collect users from, for example, NIS | or LDAP directories when run, not just "local" /etc/passwd users. Different | people have different views on what "local" means in that case and I have been | caught by that before. | | You can replace the grep, awk, echo, sed set with the more efficient: | | /bin/getent passwd | /bin/awk -F: '/\/home/ {printf $1 ","}'
Nits welcome. :) In that environment, we were pulling user accounts from LDAP, so. I should have mentioned that. Excellent use of awk. Cheers. -- bdha cyberpunk is dead. long live cyberpunk. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.