Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'GeekTool - Useful and fun info on the desktop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
GeekTool - Useful and fun info on the desktop
Authored by: robg on Jul 07, '04 08:15:29AM
This worked for me:
top -l 1 | grep 'CPU usage' | cut -c 33-80
The cut -c 33-80 bit displays only columns 33 to 80 of the grep result; 33 is where the phrase "CPU usage" starts, and 80 is about at the end of the line...

I tested with GeekTool, and it's working quite nicely -- though I do use MenuMeters, as suggested in another post...

-rob.

[ Reply to This | # ]