need help triming data out of a file
Posted: 18 Feb 2009 16:49
I wrote a bat file to capture some disk info and send it to a file. I got more info out of the function then i wanted but can not reduce the default output. The file looks like this:
LOGICAL UNIT NUMBER 1563
Default Owner: SP B
Current owner: SP A
Device Map: Valid
LOGICAL UNIT NUMBER 100
Default Owner: SP B
Current owner: SP A
Device Map: Valid
I have a lot of info about LUN's above 500 that I don't want. How do I read the file and delete the section of three lines having to do with LUN 1563? I tried a few ways and they all miss, so hoping someone has a better idea...
Dave
LOGICAL UNIT NUMBER 1563
Default Owner: SP B
Current owner: SP A
Device Map: Valid
LOGICAL UNIT NUMBER 100
Default Owner: SP B
Current owner: SP A
Device Map: Valid
I have a lot of info about LUN's above 500 that I don't want. How do I read the file and delete the section of three lines having to do with LUN 1563? I tried a few ways and they all miss, so hoping someone has a better idea...
Dave