I am joining two very simple sorted files but for some strange reason it is not working. f1.txt:
f1 abc
f2 mno
f3 pqr
f2.txt:
abc a1
mno a2
pqr a3
Command:
join -t '\t' f1.txt f2.txt -1 2 -2 1 > f3.txt
FYI in the f1,f2 files the space is a tab. But this is producing a blank f3.txt. Why is this happening? This is such a simple example of joining right?