On Tue, Jan 6, 2009 at 9:50 AM, John Philips <johnphilip...@yahoo.com> wrote:
> 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

Awesome. Do you need me to dissect it so you know *why* it works, or
would you prefer to figure it out yourself?

--Paul

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to