jion
时间:2006-08-13 来源:anima
join
join [options] file1 file2
Join lines of two sorted files by matching on a common field. If either file1 or file2 is -, read from standard input. Often used to merge data stored in text-based file formats such as comma-separated-value formatted spreadsheets.
Options
-a filenumPrint a line for each unpairable line in file filenum, in addition to the normal output.
-e stringReplace missing input fields with string.
-i, --ignore-caseIgnore case differences when comparing keys.
-1 fieldnum1The join field in file1 is fieldnum1. Default is the first field.
-2 fieldnum2The join field in file2 is fieldnum2. Default is the first field.
-o fieldlistOrder the output fields according to fieldlist, where each entry in the list is in the form filenum.fieldnum. Entries are separated by commas or blanks.
-t charSpecifies the field-separator character (default is whitespace).
-v filenumPrint only unpairable lines from file filenum.
--helpPrint help message and then exit.
--versionPrint the version number and then exit.