In this case, it's a bit funny, because iostat splits the output over multiple lines.
So you need to extract the timestamp on the first line, then you need to combine that with the lines below until the next timestamp, to get one "entry" - i.e. CPU/IO stats at that one second instance, in this case.
CPU info itself is split over two lines, and then IO per device is put into a table.
Can you see sequence being used to parse something like this, or is it a bit out of scope?
What are your thoughts on parsing
iostat
output?For example:
In this case, it's a bit funny, because iostat splits the output over multiple lines.
So you need to extract the timestamp on the first line, then you need to combine that with the lines below until the next timestamp, to get one "entry" - i.e. CPU/IO stats at that one second instance, in this case.
CPU info itself is split over two lines, and then IO per device is put into a table.
Can you see sequence being used to parse something like this, or is it a bit out of scope?