Article 5B5B1 [SOLVED] How do I 'cut' the output of 'top'?

[SOLVED] How do I 'cut' the output of 'top'?

by
lucmove
from LinuxQuestions.org on (#5B5B1)
I want to capture the CPU use of every thread (or rather the first five lines).

None of this works:

Code:$ top -b -n1 | sed '8,12!d' | cut -f9

$ top -b -n1 | sed '8,12!d' | cut -d' ' -f9What am I doing wrong?

(Related thread: https://www.linuxquestions.org/quest...se-4175685870/)

TIAlatest?d=yIl2AUoC8zA latest?i=VPWtuUc25q0:lCy-PqY-uVI:F7zBnMy latest?i=VPWtuUc25q0:lCy-PqY-uVI:V_sGLiP latest?d=qj6IDK7rITs latest?i=VPWtuUc25q0:lCy-PqY-uVI:gIN9vFwVPWtuUc25q0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments