I am currently comparing two very large files with
comm and am interested in all three columns of
comm‘s output. Normally I would just run
comm three different times, having it print a different column each time and saving that output to a file (ie
$comm -13, ect.)
This time, however, the files are very large and so I would like to only run
comm once. The main problem I am encountering is parsing the output. Normally I would use
cut to get each column/field from the output, but my input files contain tabs as part of their entries. This makes parsing the file on
t produce incorrect results (eg. a line containing three tabs in column 1 will appear to also have entries in columns 2 and 3).
Is there any way to be able to successfully parse the comm output in my situation?
Go to Source