红联Linux门户
Linux帮助

用awk命令运算

发布时间:2011-12-18 20:43:36来源:红联作者:hui8952930
一个文件有3列,n行,我现在想把它第2列和第3列所有数据求和,请问在家怎么解决,数据是浮点型的。下面有数例。。。
1324113000: 3.6639133935e+06 6.0453169951e+07
1324113300: 1.7888579865e+06 6.8146117605e+07
1324113600: 2.9953087149e+06 6.1414038506e+07
1324113900: 3.2355796171e+06 6.1955260493e+07
1324114200: 1.6410630103e+06 6.2179191710e+07
1324114500: 1.5104288068e+06 6.3675965442e+07
1324114800: 1.6098996382e+06 6.3017405928e+07
1324115100: 1.5059101996e+06 6.2886774719e+07
1324115400: 1.4751166843e+06 6.1778723396e+07
1324115700: 3.0806877433e+06 6.2228542496e+07
1324116000: 1.5176425230e+06 5.8696338066e+07
1324116300: 1.4562943088e+06 6.2457276178e+07
1324116600: 1.7666179418e+06 6.2538881815e+07
1324116900: 1.8292916650e+06 6.3821022438e+07
1324117200: 1.4760515717e+06 6.6052769864e+07
1324117500: 1.8111361210e+06 5.9729569717e+07
1324117800: 1.6871404933e+06 6.3722546182e+07
1324118100: 2.7861849569e+06 6.1662416338e+07
1324118400: 1.5188088401e+06 6.2214616057e+07
1324118700: 1.8397896992e+06 5.9717302208e+07
1324119000: 1.5590675020e+06 6.1522230089e+07
1324119300: 1.4909174645e+06 6.1312001667e+07
1324119600: 1.5122693217e+06 6.3994864742e+07
1324119900: 1.5414604713e+06 6.5182559651e+07
1324120200: 2.1396295971e+06 6.0652132488e+07
1324120500: 4.6902781545e+06 6.4547742032e+07
文章评论

共有 2 条评论

  1. sizeofLJ 于 2011-12-19 16:18:48发表:

    luguo

  2. Fzzd 于 2011-12-18 21:32:25发表:

    帮顶下