Off topic:How to calculate average of each column and the data in separate file?
0
0
Entering edit mode
3.2 years ago
sadstudent • 0

Hi all,

I would like to find the average of the first two columns in each file and divide the values (Column 2 / Column1). Below shows the example of my intended output :

File1:
 A B
 1 2 
 4 5 
 7 8 

File2:
 A B 
 2 3 
 5 6 
 8 9

Desired output :
File1 1.25
File2 1.125

Thank you

linux bash • 260 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2678 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6