You can use awk
like this:
awk 'FNR==NR{a[substr($2,1,3)];next} substr($2,1,3) in a' file1 file2
9 132185894 132209127 DUP 99 23234
3
solved How to find first three digits matching pattern from a single column between two text files [closed]
You can use awk
like this:
awk 'FNR==NR{a[substr($2,1,3)];next} substr($2,1,3) in a' file1 file2
9 132185894 132209127 DUP 99 23234
3
solved How to find first three digits matching pattern from a single column between two text files [closed]