This one time, at band camp, Jeff Waugh wrote:
>It has to be in shell,
Awk isn't shell. zsh is shell.
a=`for i in ${(f)"$(<i/proc/cpufreq)"}; do case $i in bogomips*) echo "+
${i/bogomips*:/}";; esac; done`
echo $((0 $a))
I tried to get it down to one line, but zsh complained about bad
substitutions with the backticks, despite the manpage saying it'd do command
substitutions within a $(()) expression.
--
[EMAIL PROTECTED] http://spacepants.org/jaq.gpg
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug