#!/usr/bin/awk -E { split($0, _columns, "\t") for(i in _columns){ columns[i] += _columns[i] } } END { output=columns[0] for(i in columns){ output = output "\t" columns[i] } print output }