Delete keyword/value from file using sed command

Create file and write some keyword
$ cat file1
Linux Course
Python Course
Fedora Course
Redhat Course

Delete keyword as Python from file
$ sed ‘/Python Course/d’ file1
Linux Course
Fedora Course
Redhat Course

Delete keyword permanently from file use -i option
$ sed -i ‘/Python Course/d’ file1

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*