> Use LDAP. > > I couldn't resist. :-P Har har. > With the example below, this should give you what you want: > > grep ^node site.pp | sed -e 's/^node //' | awk -F, > '{for(i=1;i<=NF;i++) {print $i}}'
Thanks, that did the trick. Well, almost. The hostnames are in quotation marks so I piped it to yet another program for the final touch. grep ^node site.pp | sed -e 's/^node //' | awk -F, '{for(i=1;i<=NF;i++) {print $i}}' | cut -d "'" -f2 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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 -~----------~----~----~----~------~----~------~--~---