Task: Escape a String for sed Replace Pattern
Task: Escape a String for sed Replace Pattern: a task in Terminal-Lego-15k (Harbor dataset). When using sed to perform text substitution, user-provided replacement strings can contain special characters that have special meaning in sed (such as / , & , \ , and newlines). These characters must be…
The task
When using `sed` to perform text substitution, user-provided replacement strings can contain special characters that have special meaning in sed (such as `/`, `&`, `\`, and newlines). These characters must be properly escaped to be treated as literal text.
Part of PrimeIntellect/Terminal-Lego-15k.