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

Click here to return to the 'easier with awk' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
easier with awk
Authored by: daniel_steffen on Apr 07, '04 04:30:54AM

FWIW, in this case, awk is actually easier than sed or perl IMO...

ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF/1000000000; exit}'

[ Reply to This | # ]