Software Troubles and Troubleshooting
Thursday, March 15, 2012
awk print sum of a column and number of rows
awk '{sum=sum+$3} END {print "sum is ",sum," nr = ",NR}' file1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2024
(2)
►
March
(1)
►
February
(1)
►
2022
(1)
►
September
(1)
►
2021
(3)
►
October
(1)
►
March
(1)
►
January
(1)
►
2020
(10)
►
September
(2)
►
August
(2)
►
July
(1)
►
April
(2)
►
March
(3)
►
2019
(32)
►
October
(5)
►
September
(3)
►
August
(1)
►
June
(2)
►
May
(3)
►
April
(5)
►
March
(6)
►
February
(2)
►
January
(5)
►
2018
(33)
►
December
(3)
►
November
(8)
►
October
(2)
►
September
(5)
►
August
(4)
►
July
(1)
►
June
(2)
►
April
(3)
►
March
(1)
►
January
(4)
►
2017
(64)
►
December
(3)
►
November
(5)
►
September
(2)
►
August
(1)
►
July
(1)
►
June
(7)
►
May
(6)
►
April
(3)
►
March
(5)
►
February
(14)
►
January
(17)
►
2016
(67)
►
December
(10)
►
October
(5)
►
September
(6)
►
August
(2)
►
July
(1)
►
June
(6)
►
May
(2)
►
April
(7)
►
March
(6)
►
February
(7)
►
January
(15)
►
2015
(38)
►
December
(21)
►
November
(2)
►
October
(7)
►
May
(1)
►
April
(6)
►
March
(1)
►
2014
(19)
►
September
(1)
►
June
(3)
►
May
(3)
►
April
(3)
►
March
(8)
►
January
(1)
►
2013
(48)
►
November
(1)
►
October
(1)
►
August
(2)
►
July
(1)
►
June
(2)
►
May
(5)
►
April
(3)
►
March
(13)
►
February
(3)
►
January
(17)
▼
2012
(59)
►
December
(8)
►
November
(5)
►
October
(1)
►
September
(2)
►
August
(2)
►
July
(12)
►
June
(1)
►
May
(8)
►
April
(11)
▼
March
(5)
All the svn changes in a date range
formatting xml in vim
maven create eclipse project
awk print sum of a column and number of rows
Maven plugin for eclipse
►
February
(2)
►
January
(2)
►
2011
(77)
►
December
(3)
►
November
(3)
►
October
(12)
►
September
(3)
►
August
(4)
►
July
(6)
►
June
(6)
►
May
(19)
►
April
(4)
►
March
(2)
►
January
(15)
►
2010
(147)
►
December
(27)
►
November
(16)
►
October
(27)
►
September
(5)
►
August
(4)
►
July
(2)
►
June
(41)
►
May
(11)
►
April
(4)
►
February
(3)
►
January
(7)
►
2009
(46)
►
December
(16)
►
November
(7)
►
July
(1)
►
June
(2)
►
April
(4)
►
March
(3)
►
January
(13)
►
2008
(73)
►
December
(13)
►
November
(14)
►
October
(8)
►
September
(1)
►
July
(7)
►
June
(2)
►
May
(2)
►
April
(8)
►
March
(14)
►
January
(4)
►
2007
(9)
►
December
(3)
►
November
(3)
►
September
(1)
►
February
(2)
No comments:
Post a Comment