Other v1.0.0

sed-tool

Stream editor for filtering and transforming text using scripts. Use for find-and-replace, text manipulation, and batch...

dinghaibin 更新于 2026-05-03 1 浏览
下载 SKILL

技能说明

Stream editor for filtering and transforming text using scripts. Use for find-and-replace, text manipulation, and batch file editing.

使用场景

Perform basic text transformations on input streams using scripting commands. Supports find-and-replace, deletion, insertion, and conditional operations.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/sed-tool
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

5 个文件 · 13 kB
SKILL.md text/markdown
---
name: sed-tool
description: Stream editor for filtering and transforming text using scripts. Use for find-and-replace, text manipulation, and batch file editing.
---

# Stream Editor

Perform basic text transformations on input streams using scripting commands. Supports find-and-replace, deletion, insertion, and conditional operations.

## Usage

```bash
sed-tool [options] <script> [file...]
```

## Common Commands

- `s/old/new/`: Substitute text
- `/pattern/d`: Delete matching lines
- `Np`: Print line N
- `-i`: Edit files in-place

## Examples

```bash
# Find and replace
sed-tool 's/foo/bar/g' file.txt

# Edit in-place
sed-tool -i 's/old/new/g' config.ini

# Delete lines matching pattern
sed-tool '/debug/d' log.txt
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。