# Text

> Analyze and transform text files using bash tools Use when this capability is needed.

- Skill: `tomevault-io/text` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/text`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/text/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/text

---


# Text Processing Skill

Process text files using standard bash tools (grep, sed, awk, wc).

## Available Scripts

### stats.sh
Get statistics about a text file (lines, words, characters).
```bash
bash /skills/text/scripts/stats.sh document.txt
```

### search.sh
Search for patterns in text files.
```bash
bash /skills/text/scripts/search.sh <file> <pattern> [--count] [--context <lines>]
```

### extract.sh
Extract specific lines or sections from a file.
```bash
bash /skills/text/scripts/extract.sh <file> --lines <start>-<end>
bash /skills/text/scripts/extract.sh <file> --between <start_pattern> <end_pattern>
```

### wordfreq.sh
Count word frequencies in a text file.
```bash
bash /skills/text/scripts/wordfreq.sh document.txt [--top <n>]
```

## Examples

```bash
# Get file statistics
bash /skills/text/scripts/stats.sh readme.txt

# Search with context
bash /skills/text/scripts/search.sh log.txt "ERROR" --context 2

# Extract lines 10-20
bash /skills/text/scripts/extract.sh file.txt --lines 10-20

# Top 10 most frequent words
bash /skills/text/scripts/wordfreq.sh article.txt --top 10
```

---
> Source: [vercel-labs/bash-tool](https://github.com/vercel-labs/bash-tool) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-22 -->

