I have two files, FL and FR, and would like to select those rows in FL that match the join condition below. However join(1)'s output modifies the layout of FL. Is there a way to guarantee that the join's output will have the same layout (e. g. column order) as FL?
FL:
a 1 1 u
b 2 2 v
c 3 3 w
FR:
2
join -1 2 -2 1 FL FR
Output:
2 b 2 v
and I would like
b 2 2 v
or in other words, the exact row of FL that matches the join condition. In 'real life' the file FL has many columns, and FR has a single column.