[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/)
TIA


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/)
TIA