What is Sed?
A stream editor for filtering and transforming text, commonly used for find-and-replace operations in files.
Sed (Stream Editor) processes text line by line using commands. The most common use is substitution: sed 's/old/new/g' file replaces all occurrences of "old" with "new". The -i flag edits files in place.
Sed supports regular expressions, line addressing, deletion (d), insertion (i/a), and multi-command processing. It is invaluable for batch text processing and configuration file management.