The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-25-2006
ranj@chn ranj@chn is offline
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
man awk

check awk.
Code:
awk '{sum+=$1} END{printf("%d\n",sum)}' filename
Always do a search in the forum. You will find your answer.
Reply With Quote