On Tue, 2003-03-18 at 18:19, Jeff Waugh wrote:
> Your mission: To work out what it's doing, why you'd be stupid enough to
> want to do it, and then how to do it better. It has to be in shell, and it
> has to handle decimals! :-)
You're a bad, bad man. I have been known to waste days reducing such
expressions, but not today! Just one simplification to make it spawn 1
less process:
awk '{if(/bogomips/){ print "+" $3 }}' < /proc/cpuinfo | tr -d '\n' |
cut -c 2- | blah blah blah
James.
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug