From: Phrogz Date: 2007-02-08T01:15:07+09:00 Subject: Re: Match until new line On Feb 7, 8:02 am, "anon1m0us" wrote: > I am running a server utility that allows me to view server shares and > permissions. > > The command I am using is: > SHARES=Array.new > SHARES=`srvcheck \\\\testserver.split("\n") A small note, but that first line is totally unnecessary. You don't need to 'declare' a variable to be of a particular type before assigning it. What you have above is similar to: foo = 12 foo = 'hello world' The value in your first assignment (a new, empty array instance) is totally discarded when you then assign the SHARES constant to a completely different array.