I am trying to parse iostat output for io issues..
I want to print all lines including second occurance of 'extended' till EOF(end of file). Can we do that using awk or sed one liners or do we need a script for it?
iostat -xnzs 10 2 | awk '/^ext/{a++}a>1'
or, if output is in a file:
awk '/^ext/{a++}a>1' file
1 Like