I have 2 files with equal number of rows and the value of the first column is the same on both:
file1: (columns 1, 2, 3, 4)
1 5 3 4
2 2 1 3
3 1 5 8
4 7 8 6
...
file2: (columns 1, 2, 3 , 4, 5)
1 1 0 0 1
2 1 1 0 0
3 1 1 0 0
4 0 0 0 1
...
I want to create another file from file1 depending of the pattern of columns 2, 3, 4 and 5 of file2.
Example: for a pattern 1100, file3 should be:
2 2 1 3
3 1 5 8
...
And for a pattern XXX1, file4 should be:
1 5 3 4
4 7 8 6
...
Thanks
file1: (columns 1, 2, 3, 4)
1 5 3 4
2 2 1 3
3 1 5 8
4 7 8 6
...
file2: (columns 1, 2, 3 , 4, 5)
1 1 0 0 1
2 1 1 0 0
3 1 1 0 0
4 0 0 0 1
...
I want to create another file from file1 depending of the pattern of columns 2, 3, 4 and 5 of file2.
Example: for a pattern 1100, file3 should be:
2 2 1 3
3 1 5 8
...
And for a pattern XXX1, file4 should be:
1 5 3 4
4 7 8 6
...
Thanks