sed_edit
Apply sed patterns to modify files, enabling single-line changes, pattern replacements, and text transformations. Supports backups and previews for safe, controlled edits.
Instructions
Make small edits to files using sed patterns. Efficient for single-line changes, pattern replacements, and simple text transformations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
backup | No | Create backup file before editing | |
file | Yes | Path to the file to edit | |
pattern | Yes | Sed pattern (e.g., "s/old/new/g" for substitution) | |
preview | No | Preview changes without modifying file |