HF RL Explorer

Task: Insert Line with Leading Spaces Using sed

Task: Insert Line with Leading Spaces Using sed: a task in Terminal-Lego-15k (Harbor dataset). You need to write a shell script that inserts a line with leading spaces into a specific line number of a file using sed . The challenge is that the standard sed insert command strips leading whitespace…

The task

You need to write a shell script that inserts a line with leading spaces into a specific line number of a file using `sed`. The challenge is that the standard `sed` insert command strips leading whitespace, so you need to find a way to preserve the spaces.

Part of PrimeIntellect/Terminal-Lego-15k.