Sed replace word task failed

Hi, The task was to delete lines with the word copyright irrespective of case.

I used the command - sed β€˜/copyright/Id’ /home/BSD.txt > /home/BSD_DELETE.txt

and validate the output file using grep -i command - cat /home/BSD_DELETE.txt | grep -i copyright

still the task failed :frowning: screenshot attached.

Hi @sneha1

As per the task description you need to take care about the case sensitivity, so that you only delete the string mentioned but Id will delete all matching strings irrespective of their case.

case

Hi @Inderpreet
Thank you. I assumed that we need to delete lines with the word copyright irrespective of the case. such a silly mistake from my end… :frowning: thank you very much for your help :slight_smile:

Hi @Inderpreet
I have marked this task for review. Could you please provide your suggestion in this link so i will get a chance to redo this task.

Appreciate your help :slight_smile: Thanks.

@sneha1

You are welcome. Added comment in your review.