360 Secure SkillHub
360 安全技能中心

Join Tool

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

dinghaibin
dinghaibin
热度 30.54
最近更新 2026-05-11 17:46:29
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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