in reply to Re^4: Parsing output from a command
in thread Parsing output from a command

BrowserUk,
The problem isn't what you suggest:
That'll screw up on the last record because there is no "\nhdisk" delimiter following it.

The problem is that the regex was anchored at ^. As I said, I had to make a minor modificiation to match the real AIX command (removing that). If you modify my code to drop the ^ it will work against the OP's DATA or the two modifications above if you want to run it on the real command.

Cheers - L~R