Stream editor for filtering and transforming text using scripts. Use for find-and-replace, text manipulation, and batch...
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 助手即可完成安装。
---
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
```
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。