The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
sum of more than 1 column
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
sum of more than 1 column
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-02-2008
robotronic
Can I play with madness?
Join Date: Apr 2002
Location: Italy
Posts: 370
Code:
awk '{a+=$3+$6+$8} END {printf ("%f\n",a)' file_name
robotronic
View Public Profile
Find all posts by robotronic