That'll screw up on the last record because there is no "\nhdisk" delimiter following it.
In reply to Re^2: Parsing output from a command by BrowserUk in thread Parsing output from a command by ronix