A couple of UDFs to look at as well.

Topic: Pipe - Submits a shell command and redirects output to an array

Topic: Pipe(2) - Submits a shell command and redirects output to an array
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.