HF RL Explorer

Replace Whole Line Containing a String Using Sed

Replace Whole Line Containing a String Using Sed: a task in Terminal-Lego-15k (Harbor dataset). You need to write a shell script that uses sed to find a line containing a specific keyword and replace the entire line with a new text.

The task

You need to write a shell script that uses `sed` to find a line containing a specific keyword and replace the **entire line** with a new text.

Part of PrimeIntellect/Terminal-Lego-15k.