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 -->
  #3 (permalink)  
Old 07-17-2008
christineida christineida is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 3
Try This...
grep cores /proc/cpuinfo | awk '{print $4}' | nawk '{sum +=$1} END{print sum}'

Thnx,
Christine Ida