Skip to content
Advertisement

Building matrix with values from multiple files

I have multiple files where i need to create a matrix with matching values

File_1, which is primary file contains all numbers tab delimited with one row

JavaScript

There are multiple files where if a number matches, add 1 or else add 0 to file above

File_2

JavaScript

File_3

JavaScript

Output

JavaScript

Advertisement

Answer

awk to the rescue!

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement