large-scale-text-editing

Transforms large-scale text files using Vim macros, sed, or awk.

134|21|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/letta-ai/skills --skill large-scale-text-editing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: large-scale-text-editing
Source: https://github.com/letta-ai/skills/tree/main/ai/benchmarks/letta/terminal-bench-2/trajectory-only/large-scale-text-editing
Command: npx skills add https://github.com/letta-ai/skills --skill large-scale-text-editing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guidance for transforming very large text files containing thousands to millions of lines using Vim, sed, or awk.

Core Features & Use Cases

  • Scale-aware editing: batch transformations on millions of lines.
  • Tooling strategies: Vim macros, sed, awk.
  • Testing & verification: sample-based validation.

Quick Start

Perform a bulk substitution across a 1M-line CSV using a Vim macro.

Frequently Asked Questions about large-scale-text-editing

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

FAQPage Schema
How do I efficiently edit CSV files with millions of lines?

Large-scale text editing enables bulk transformations on millions-line CSV files using Vim macros, sed, or awk. These tools apply pattern-based changes across the entire dataset without loading everything into memory, making them suitable for files too large for standard editors.

Can I use sed or awk for batch processing large text files?

Sed and awk are designed for batch processing text files at scale. Sed applies regex-driven substitutions across millions of lines, while awk performs column-based transformations on delimited data like TSV and CSV, both completing in seconds on files conventional editors cannot handle.

How do I create and run Vim macros for repetitive edits across huge files?

Vim macros record keystroke sequences and replay them across file regions, enabling bulk edits bounded by operation count. For large files, macros combined with range commands apply transformations to specific line ranges, then verify results before committing changes.

What's the best way to test edits on large text files before applying them permanently?

Sample-based validation tests transformations on a representative subset before committing. Create a backup, run edits on a sample section, verify output across varied regions, then apply the transformation to the full file once confirmed.

Can I handle pattern-based regex transformations across delimited data files?

Regex-driven transformations work across delimited data by targeting specific columns or line patterns. Sed matches and replaces patterns across millions of lines; awk isolates columns and applies conditional logic, both suited to CSV, TSV, and similar formats.

What are the constraints when editing files constrained by keystroke or operation count?

Vim macros and sed are optimized for keystroke and operation-count efficiency, completing in single passes. However, complex multi-step transformations may require chaining tools or multiple passes; test incrementally to confirm performance meets constraints before production use.