I have the below file , I just would like to have a method ( script ) so that to find the line(s) have the string "yyy" , then delete the lines with such string , would advise how to write script ?
thanks
Code:
#vi example.txt
aaa bbb ccc xxxx
aaa bbb ccc yyy
aaa bbb ddd yyy
after run the script ,the output should be as below .