The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: awk question..
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 07-17-2008
nua7 nua7 is offline
Registered User
  
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 353
This won;t work , because I need to count the total number of cores , including all processors.


Code:
[root@iqmango ~]# grep cores /proc/cpuinfo |wc -l
8

This gives me the total number of processors but not cores.For cores I need to add up the lines as mentioned in the fiorst post.

Hope the confusion is clear.

Thanks!
nua7