0
rated 0 times
[
0]
[
0]
/ answers: 1 / hits: 3503
/ 1 Year ago, sun, november 20, 2022, 12:11:12
let us say i have two files a.txt, b.txt
a.txt
87621 3bde NDF
87621 2dfg NDF
87621 cdef NDF
87621 abcd NDF
b.txt
93291 abcd NDF
93291 2dfg NDF
93291 adbf NDF
93291 gdrg NDF
My script should create a file , by matching column 2 of both the files
and create a file with matching string in new file c.txt like below
c.txt
2dfg
abcd
I tried several options, but not succeded, can you help !
More From » bash