'How to use the sed command to delete a line from a file [closed]

Hello I am trying to delete a line from my file but I keep getting this error when i run the command below: sed: -e expression #1, char 1: unknown command

Here is an example of what I am trying to do

sed -i 'something'/d "home/file/something.txt"

What am I doing wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source