I need to access the results of a mud command. The result of this command could be 1 to n lines, each of which is identical the previous except for a 'count' value. Here's an example:
Comand:
where smallrat
Result:
M 1. a small rat - [ 184] North Way
M 2. a small rat - [ 186] Jesse Square
M 3. a small rat - [ 103] West Way
M 4. a small rat - [ 126] Adam Street
M 5. a small rat - [ 186] Jesse Square
M 6. a small rat - [ 103] West Way
M 7. a small rat - [ 103] West Way
I need to parse the last line of the result. Is there any way to accomplish this without writing the log to a text file and then reading the captured log text file?
Comand:
where smallrat
Result:
M 1. a small rat - [ 184] North Way
M 2. a small rat - [ 186] Jesse Square
M 3. a small rat - [ 103] West Way
M 4. a small rat - [ 126] Adam Street
M 5. a small rat - [ 186] Jesse Square
M 6. a small rat - [ 103] West Way
M 7. a small rat - [ 103] West Way
I need to parse the last line of the result. Is there any way to accomplish this without writing the log to a text file and then reading the captured log text file?