360 Secure SkillHub
360 安全技能中心

Tac Tool

该 Skill 提供命令行文件反序拼接能力,将输入的多个文本文件按行从后往前显示,最后一行先出现;适用于查看日志中最新条目,也可将结果重定向到新文件。基于 Bash/Python 运行,未声明网络或外部服务依赖。

dinghaibin
dinghaibin
热度 31.40
最近更新 2026-05-11 17:47:30
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 文件转换

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add tac-tool
Metadata
name
tac-tool
description
Concatenate and display files in reverse line order (last line first). Use for viewing log files from newest entries and reversing file content.

Tac - Reverse File Concatenation

Display file contents with lines in reverse order. The last line appears first, making it useful for viewing recent log entries and processing data in reverse.

Usage

tac-tool [options] <file...>

Examples

tac-tool log.txt
tac-tool file1.txt file2.txt > reversed_combined.txt