Search Results

Search: Posts Made By: swvanderlaan
4,756
Posted By swvanderlaan
Hi, Here's the file I'd like to get: d ...
Hi,

Here's the file I'd like to get:

d

For instance the first three lines are not in file1, but are in file2. I'd like to keep them in the final file3. So basically I'd like to add the...
4,756
Posted By swvanderlaan
Code
Hi,

Thanks a bunch! It work! Got now a new file with this code:

awk 'NR==FNR{A[$1]=$2;next}A[$1]{$2=A[$1] FS $2;print}' file2.txt FS=, OFS=, file1.txt > file3.txt

Thank you also for pointing...
4,756
Posted By swvanderlaan
Matching 2 files based on one column
Hi,

On a similar subject, the following. I have two files:

file1.txt
dbSNP_rsID,Chromosome,Position,Gene
rs10399749,chr. 01,45162,?
rs4030303,chr. 01,72434,?
rs4030300,chr. 01,72515,?...
Showing results 1 to 3 of 3

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