Sed Command Cheatsheet
Table of Contents
- Basic Syntax
- Address Types
- Basic Commands
- Text Replacement
- Advanced Commands
- Regular Expressions
- Special Characters
- Multiple Commands
- File Operations
- Practical Examples
- Advanced Techniques
Basic Syntax
- options: Modify sed behavior
- command: Operation to perform
- file: Input file (optional, can use stdin)
Address Types
Basic Commands
Text Replacement
Advanced Commands
Hold Space Operations
Flow Control
Regular Expressions
Multiple Commands
Using Multiple Commands
File Operations
Practical Examples
Text Processing
Configuration File Editing
Advanced Text Manipulation
Advanced Techniques
Using Labels and Branches
Using Hold Space
Tips and Best Practices
-
Debugging
-
Performance
-
Safety