How to parse output from diskutil activity in bash script

Solution 1:

The delay is probably due to buffering.

Try xargs -L 1 bash myScript.sh if you can process the data line by line.