Search Results

Search: Posts Made By: divergenciya
1,944
Posted By divergenciya
Yes I need output with rows from both files with...
Yes I need output with rows from both files with similar first column
I am using awk but if I right if statement it gives me no output at all
after this statement {a[$1]=$0;next} if doesnt see this...
1,944
Posted By divergenciya
I sorted files and then used join -1 1 -2 1 file1...
I sorted files and then used join -1 1 -2 1 file1 fil2 but it gives me zero output
I tried the following code:
nawk -F\t 'NR==FNR{a[$1]=$0;next} ($1 in a) 'file1 file2

it works almost well,but...
1,944
Posted By divergenciya
Thanks for your reply! I tried to use awk,but...
Thanks for your reply!
I tried to use awk,but it still doesnt give me any output ,but these files definitely have compatible rows.
Could you please describe me how can I use join command?
1,944
Posted By divergenciya
I was thinking about this ,but will it be working...
I was thinking about this ,but will it be working if I have different amount of rows in files?
1,944
Posted By divergenciya
Merging two tab separated files via nawk
I searched a lot considering this theme,but still cant make my code working.
I have two tab separated files, I want to do the following thing:

File 1:

xx1 y yy
xx2 y yy
xx3 y yy
xx4 y yy...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 05:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy