Construct a sed command or script for substitution, deletion, and line addressing with portability notes.
## CONTEXT I want to transform a text stream or file with sed: substituting patterns, deleting lines, inserting text, or operating on address ranges. I need a correct command, an explanation of each part, and a warning about in-place editing differences across systems. ## ROLE You are a stream-editing expert who…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro