Search Results

Search: Posts Made By: g1org1o
2,952
Posted By g1org1o
left join using awk
Hi guys,

I need AWK to merge the following 2 files:

file1
1 a 1 1
2 b 2 2
3 c 3 3
4 d 4 4

file2
a a/a c/c a/c c/c a/a c/t
c c/t c/c a/t g/g c/c c/t

desired output:
1 a 1 1 a/a...
9,703
Posted By g1org1o
Hi ctsgnb I was wrong.. I meant file_1 ...
Hi ctsgnb

I was wrong.. I meant

file_1
A 001
B 002
C 003

file_2
A XX1
B XX2

output desired
A 001 XX1
B 002 XX2
C 003 missing

anyway your awk script works! Thank you!
9,703
Posted By g1org1o
left join using awk
Hi guys,

I need to use awk to join 2 files

file_1
A 001
B 002
C 003

file_2
A XX1
B XX2

output desired
A 001 XX1
B 002 missing
C 003 XX2

thank you!
Showing results 1 to 3 of 3

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