From: Brian Candler Date: 2007-02-08T00:41:59+09:00 Subject: Re: Match until new line On Thu, Feb 08, 2007 at 12:05:06AM +0900, anon1m0us wrote: > the output is: > > \\testserver1\test > domain\user1 Full Control > Domain\Admin Full Control > Domain\chuser Read > Everyone Read > domain\ysergeb Read > > \\testserver2\BACKUPTEST > Everyone Change > BUILTIN\Administrators Read > > \\testserver31\DEVQA$ > Everyone Full Control > > \\testsercver4\trymeout$ > BUILTIN\Administrators Full Control > > > > I need to match to a server and a specified share and print out all > the permissions just for that share. The .split("\n") spliuts it on > the newline, but how can I get all the information in between the new > lines. .split("\n\n") will divide the output into groups split by a blank line. Then you can match on the start of the string to find the one you want. #sharelist = `srvcheck \\\\testserver` sharelist = <