360 Secure SkillHub
360 安全技能中心

Split Tool

该 Skill 提供命令行工具 split-tool,可按指定行数、字节大小或分块数量将大文件切分为多个片段,适用于拆分日志或数据文件。Skill 内含一个 Python 脚本,运行依赖 bash 与 python3 环境,未声明网络、外部服务或 API 密钥需求。

dinghaibin
dinghaibin
热度 32.51
最近更新 2026-05-11 17:47:26
分类:效率依赖:读写文件 / 代码执行应用场景:数据处理 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add split-tool
Metadata
name
split-tool
description
Split files into smaller pieces by size, line count, or number of chunks. Use for breaking large files into manageable parts.

Split - File Fragmenter

Divide large files into smaller segments based on line count, byte size, or number of output files. Useful for breaking up logs or data files.

Usage

split-tool [options] <file> [prefix]

Options

  • -l N: Split every N lines (default: 1000)
  • -b SIZE: Split by byte size (e.g. 10M, 1G)
  • -n N: Split into N chunks

Examples

split-tool -l 500 large_log.txt log_part_
split-tool -b 10M data.bin part_
split-tool -n 5 bigfile.txt chunk_