![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to remove columns with specific string? | AMBER | UNIX for Dummies Questions & Answers | 2 | 03-31-2009 03:18 PM |
| Grep based on specific columns. | deepakwins | Shell Programming and Scripting | 1 | 03-26-2009 06:23 PM |
| Displaying specific columns in a file | logorob | UNIX for Dummies Questions & Answers | 1 | 02-25-2009 01:03 AM |
| Replace specific columns | jisha | Shell Programming and Scripting | 2 | 10-13-2008 10:34 AM |
| Deleting specific columns from a file | premar | Shell Programming and Scripting | 11 | 02-14-2006 07:02 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Mean of the specific columns
I have a input file that has some common values in 1st,2nd and 3rd columns. 4th and 5th are different. Now I would like to print the mean of the fourth column of similar values in 1st.2nd and 3rd columns along with all the values in 5th column. input Code:
NM_0 1.22 CR5 0.4 n_21663 NM_0 1.22 CR5 0.1 n_1664 NM_0 1.22 CR5 0.6 n_21665 NM_11 1.36 AK09 0.9 n_19168 NM_11 1.36 AK09 -0.02 n_19169 output Code:
NM_0 1.22 CR5 0.366 n_21663 n_1664 n_21665 NM_11 1.36 AK09 0.44 n_19168 n_19169 Thanx in advance |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|