in reply to Re^2: Process netgroup file with a regex
in thread Process netgroup file with a regex

I updated my code snippet, above. I think it's more in keeping with what you want. You'll still have to output the hashes, but that should be easy enough. Their keys are the alias names for the netgroup being scanned, and the values are refs to an array of names (host, user, or domain).

Hope this helped
-v.

"Perl. There is no substitute."
  • Comment on Re^3: Process netgroup file with a regex