text-processing SKILL.md skillA

text-processing from bug-ops/zeph is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add bug-ops/zeph/text-processing@v1.0

Pins v1.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
bug-ops/zeph
Path
.zeph/skills/text-processing/SKILL.md
Versions recorded
3
Latest version
v1.0, committed Mar 30, 2026
First version recorded
Mar 21, 2026
Size
8,641 bytes
Repository stars
66
License
MIT

Transform, filter, sort, and analyze text using sed, awk, sort, uniq, cut, tr, wc, and other text processing tools. Use when the user asks to find and replace text in files, extract columns from data, count lines or words, sort and deduplicate output, reformat delimited data, perform field-based calculations, or build text transformation pipelines.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Text Processing

Before running commands, detect the OS and load the matching reference for
platform-specific syntax and gotchas:

- **Linux** — `references/linux.md` (GNU sed/awk/sort with extended flags)
- **macOS** — `references/macos.md` (BSD sed/awk/sort, Homebrew GNU alternatives)
- **Windows** — `references/windows.md` (PowerShell: Select-String, Import-Csv, ForEach-Object)

OS detection:
```bash
uname -s 2>/dev/null || echo Windows
```

**Key platform difference:** `sed -i` syntax varies — check the OS reference before in-place edits.

## Quick Reference

| Task | Portable command |
|------|-----------------|
| Find and replace (stdout) | `sed 's/old/new/g' file` |
| Extract column | `awk '{print $2}' file` |
| Cut field (delimited) | `cut -d',' -f2 file` |
| Sort lines | `sort file` |
| Unique lines | `sort file \| uniq` |
| Count lines/words/chars | `wc -lwc file` |
| Translate characters | `tr 'a-z' 'A-Z' < file` |
| First N lines | `head -n 10 file` |
| Last N lines | `tail -n 10 file` |

## sed — Stream Editor

### Substitution (portable)

```bash
# Replace first occurrence per line
sed 's/foo/bar/' file.txt

# Replace all occurrences per line
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add bug-ops/zeph/text-processing@sha256:a8a6442740901918

The line at the top of this page pins the label v1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_kucgxm4nfutdsbrh.svg)](https://markdownregistry.com/a/art_kucgxm4nfutdsbrh)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Mar 21, 2026 and Mar 30, 2026, about one every 4 days.

versioncommittedcommitsizeaudit
v1.0 latest2026-03-30 c68c5de 8,641 BA view · diff
v1.02026-03-21 f1a698c 8,626 BA view · diff
v1.02026-03-21 a3fbaa5 8,627 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8641 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

bug-ops/zeph · 66 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_kucgxm4nfutdsbrh
GET https://markdownregistry.com/api/v1/resolve?ref=bug-ops/zeph/text-processing
GET https://markdownregistry.com/api/v1/blob/a8a6442740901918fa7d629f43082b49e68276d3b373e345082f2e3496bed98d

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from bug-ops/zeph

AGENTS.md@.github AGENTS.md file
bug-ops/zeph · .github/AGENTS.md
git:20260606.583c571 · audit A · 66 stars
api-request SKILL.md skill
bug-ops/zeph · .zeph/skills/api-request/SKILL.md · Send HTTP API requests using curl. Use when the user asks to call an API, fetch data from a URL, send…
v1.0 · audit A · 66 stars
archive SKILL.md skill
bug-ops/zeph · .zeph/skills/archive/SKILL.md · Create, extract, list, and convert compressed archives using tar, zip, gzip, bzip2, xz, zstd, and 7z. Use when the user…
v1.0 · audit A · 66 stars
browser SKILL.md skill
bug-ops/zeph · .zeph/skills/browser/SKILL.md · Browser automation via Playwright MCP — navigate pages, click elements, fill forms, take screenshots, extract text…
v1.0 · audit B · 66 stars
caveman SKILL.md skill
bug-ops/zeph · .zeph/skills/caveman/SKILL.md · Switch to ultra-compressed, telegraphic output. Use when the user asks for terse, brief, minimal, "caveman", or…
v1.0 · audit A · 66 stars
code-analysis SKILL.md skill
bug-ops/zeph · .zeph/skills/code-analysis/SKILL.md · LSP-based code analysis via mcpls MCP server. Use for compiler-accurate type inspection, go-to-definition…
v1.0 · audit A · 66 stars
cron SKILL.md skill
bug-ops/zeph · .zeph/skills/cron/SKILL.md · Schedule recurring and one-time tasks using cron, crontab, at, and launchd. Use when the user asks to set up scheduled…
v1.0 · audit A · 66 stars
database SKILL.md skill
bug-ops/zeph · .zeph/skills/database/SKILL.md · Query and manage SQLite, PostgreSQL, and MySQL databases from the command line. Use when the user asks to run SQL…
v1.0 · audit A · 66 stars
docker SKILL.md skill
bug-ops/zeph · .zeph/skills/docker/SKILL.md · Manage Docker containers, images, volumes, networks, and Compose stacks. Use when the user asks to build, run, stop…
v1.0 · audit A · 66 stars
file-ops SKILL.md skill
bug-ops/zeph · .zeph/skills/file-ops/SKILL.md · File system operations — list directory contents, find files by name or glob pattern, search text inside files with…
v1.0 · audit A · 66 stars
git SKILL.md skill
bug-ops/zeph · .zeph/skills/git/SKILL.md · Run git version control commands for repository management. Use when the user asks to check status, view history or…
v1.0 · audit A · 66 stars
github SKILL.md skill
bug-ops/zeph · .zeph/skills/github/SKILL.md · GitHub CLI (gh) for repository management, issues, pull requests, releases, workflows, search, gists, and API access…
v1.0 · audit A · 66 stars

Every file in bug-ops/zeph

Browse by kind, by grade A, or by owner.