in reply to Re^2: compare columns in all possible combination
in thread compare columns in all possible combination

No, I meant
how does every line like 1 2 3 4
relate to the file1 ?
We take only 1 2 3 4 columns from file1?
A B C D? what is the logic we're trying to achieve at the end?
To summarize the column's pluses and zeroes in different arrays?
Maybe it is an XY problem we're facing here.
At this point I got this:
we take the first line 1 2 3 4, decrement every element,
then in a loop we push 4 elements into different four arrays according to these values.
At the end we're getting four arrays that look like this:
A0+000+0A0+000+0A0+000+0A0+000+0A0+000+0.
So what's the end goal?
  • Comment on Re^3: compare columns in all possible combination

Replies are listed 'Best First'.
Re^4: compare columns in all possible combination
by greeknlatin (Initiate) on Sep 21, 2014 at 15:19 UTC

    lines in file 2 contains all possible combinations of columns in file 1.

    By this way I am trying to calculate the no. of rows of any three or four columns are equal with each other.

      Please have a look at my first reply,
      is this right? I updated it.