[TriLUG] Dual core question

Scott G. Hall ScottGHall at BellSouth.Net
Wed May 25 11:16:35 EDT 2005


Lee Fickenscher wrote:
> Scott G. Hall wrote:
>> cat /proc/cpuinfo | cut -f1 -d: | grep -c processor
>>
> How about:
> cat /proc/cpuinfo | grep -c ^processor 

My generic UNIX background is showing: non-GNU grep doesn't have that
(at least on my Solaris and UnixWare system, I'll check AIX tomorrow);
but egrep does - though egrep on the other OS's is a lot slower.

--
Scott G. Hall
Raleigh, NC, USA
ScottGHall at BellSouth.Net



More information about the TriLUG mailing list