Your code is working, but when I have different size (row and header) between file 1 and 2 ,it is not work properly. And I have last question, is it possible to compare two file but they have different header , row and column with awk. As an example :
File 1:
2 2 (header #1)
3 4 5
C D 10
1 2...
Thanks for your reply, but this code only produce one file ("file"), isn't? the problem is I want to produce saveral files (file 2 , 3, and 4) from file 1. I am a really beginer in awk programing.
I am beginer in programing, I would like to compare column and instead of it, give "if statement" and produce second file.
File 1
5 A B
20 C D
file 2 :
6 1 1
22 2 4
and produce file 3 :
6 1 1 A B
22 2 4 C D
file 3 produce according comparison between column 1 at file 1 and 2 , if $1 <...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.