Skip to Content
gnux

-2, --field2

Join on this FIELD of file 2.

An option of joinx.

Usage

joinx -2 FIELD FILE1 FILE2
joinx --field2=FIELD FILE1 FILE2

Details

ShortLongValueDefaultMeaning
-2--field2FIELDjoin on this FIELD of file 2

Examples

Look up customer names when the ID is the second column of the orders file

joinx -1 2 -2 1 orders.txt customers.txt

Help in the terminal

gnux help joinx --field2

On this page