The UNIX and Linux Forums  

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



Thread: reading file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 12-07-2004
bhargav's Avatar
bhargav bhargav is offline
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
awk '
BEGIN { sum=0 ; } { sum+=$1 } END { print sum }' x


where x contains all these numbers.
Reply With Quote