I have three files. All of them having only one column.
File1 M 0 M A File2 A 0 M A File3 M 0 A A
compare each row in the three files, i.e, for first row (M,A,M) hence the maximum occurrence is M. The in the output file should contain M in the first row. likewise for other rows in the three files
Output file M 0 M A
can anybody tell the awk script for this....