360 Secure SkillHub
360 安全技能中心

Join Tool

该 Skill 提供 join-tool 命令行用法,按指定字段编号与分隔符合并两个已排序文本文件,并可通过 -a 1 显示未匹配行;行为类似 SQL JOIN,脚本以 Python 实现。

分类:效率
dinghaibin
dinghaibin
热度 22.29
最近更新 2026-05-11 17:46:29

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/join-tool
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
join-tool
description
Join lines of text from multiple files based on a common field. Use for relational data operations similar to SQL JOIN on text files.

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