Hi, Annihilannnic
my code, as below, is not efficient since it takes a really long time to run on two large-size input files. I am sure there must be much more efficient coding than I did.
awk 'BEGIN { FS=OFS="\t"}
NR==FNR{ara[$1,$2]=$0;ara2[$1]=1; next}
{
if(ara2[$1]) {
for(s in ara) {...
Hi, all
FileA (each firm has two records)
firm1 rec1
firm1 rec2
firm2 rec1
firm2 rec2
FileB (each firm owned by two institutions)
firm1 ppf1
firm2 ppf1
firm1 ppf2
firm2 ppf2
I want to do a "firm x records x owner" expansion
(if the first field in each row of fileB is the same as the first...
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.