返回 Skill 列表
extension
分类: 其它无需 API Key

Join Tool

根据共同字段将多个文件中的文本行连接起来,用于类似SQL JOIN的文本文件关系数据操作。

person作者: dinghaibinhubclawhub

Join - Relational Data Operator

Merge lines from two sorted files by matching a common join field. Similar to database JOIN operations but works on plain text files with field separators.

Usage

join-tool [options] file1 file2

Options

  • -1 N: Join on field N of file 1
  • -2 N: Join on field N of file 2
  • -t char: Use char as field separator
  • -a 1: Show unpaired lines from file 1

Examples

join-tool users.txt roles.txt
join-tool -t ',' -1 2 -2 1 customers.csv orders.csv