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


Click here to return to the 'Use ioreg command to get battery cycle count' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use ioreg command to get battery cycle count
Authored by: macjools on Feb 16, '05 10:40:22AM
you need to specift the clip width for ioreg with ioreg -w0 -l (from man ioreg)
-w Clip the output to the specified line width. The default width value is the current screen size. A value of 0 specifies an unlimited line width.


[ Reply to This | # ]
Use ioreg command to get battery cycle count
Authored by: clamstrip on Feb 17, '05 04:20:03PM

...or, recalling the unix command 'fmt'

ioreg -l | grep Capacity | fmt

or

ioreg -l | fmt | grep Capacity



[ Reply to This | # ]
Use ioreg command to get battery cycle count
Authored by: jacobolus on Dec 13, '05 12:03:21AM

No, this way doesn't work, because it's ioreg that is clipping the content, not grep. Running it through fmt does nothing to bring back content that has already been lost.



[ Reply to This | # ]