Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • It can help us help you if you provide some of your "all possible ways" you tried Commented Sep 10, 2019 at 15:39
  • I think i am closed sed '1,/instance/p' /tmp/foo.txt still its printing header line which is ID S RDRQ WRRQ RXBY TXBY %CPU %MEM TIME NAME i can trim it down with | grep -v ID but i believe there must be better way :) Commented Sep 10, 2019 at 15:42
  • How about extracting all lines with non-zero CPU-Uage like (untested) grep -vE -e virt-top -e RDRQ -e "([^ ]* *){6}0.0"? Commented Sep 10, 2019 at 15:47