text-processing

Transform and analyze text data with sed, awk, sort, uniq, cut, tr, and wc.

55|4|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/bug-ops/zeph --skill text-processing-bug-ops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: text-processing
Source: https://github.com/bug-ops/zeph/tree/main/.zeph/skills/text-processing
Command: npx skills add https://github.com/bug-ops/zeph --skill text-processing-bug-ops

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Transform, filter, sort, and analyze text data using sed, awk, sort, uniq, cut, tr, wc, and related utilities to automate editing and data extraction tasks.

Core Features & Use Cases

  • Sed-based substitutions to modify inline text across files.
  • AWK-based field processing, delimitation, and simple aggregations.
  • Sorting, deduplication, and column extraction for data cleaning and report preparation.

Quick Start

Process a sample text file to extract the second column, sort it, and output unique values.

Frequently Asked Questions about text-processing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract specific columns and remove duplicates from a delimited text file?

You can extract specific columns and remove duplicates by chaining cut for field selection, sort for ordering, and uniq for deduplication. This pipeline cleans and prepares delimited text data for analysis.

Can I use sed and awk for automated log processing on both macOS and Linux?

Yes, sed and awk work for automated log processing across macOS, Linux, and Windows environments. The processing handles portability differences between GNU and BSD utilities to ensure correct syntax execution.

What is the best way to perform inline text substitutions across multiple files?

The best way to perform inline text substitutions across multiple files is using sed-based replacement commands. This modifies text data directly within files to automate bulk editing and data extraction tasks.

How do I do simple aggregations and field processing on structured text data?

You can perform simple aggregations and field processing on structured text data using awk. It handles field delimitation and mathematical aggregations to transform and analyze raw text inputs.

Why do my shell text processing commands fail when switching between Linux and macOS?

Shell text processing commands fail between Linux and macOS due to portability differences between GNU and BSD command-line utilities. Referencing the correct syntax for each environment prevents these execution errors.

Does this text processing approach require any external dependencies or scripts?

No, this text processing approach requires no external dependencies or scripts. It relies entirely on standard UNIX utilities like sed, awk, sort, uniq, cut, tr, and wc already available in the environment.