This tool will apply the melt function of the reshape2 R package.
The melt function summarizes each unique variable:value combination on a single line. An example can be found here: http://www.statmethods.net/management/reshape.html