The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
adding contents of file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
adding contents of file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
10-20-2006
alfredo123
Registered User
Join Date: Jun 2006
Posts: 39
Quote:
Originally Posted by
anbu23
Code:
awk '{sum+=$1} END{printf("%
f
\n",sum)}' filename
Awesome! Thanks Anbu...
alfredo123
View Public Profile
Find all posts by alfredo123