Delete Every line with that Word

后端 未结 3 916
生来不讨喜
生来不讨喜 2021-01-29 10:15

I want to delete the whole line if the line contains a specific word for example \"cat\".

If \"cat\" is in this line, delete the whole

3条回答
  •  执笔经年
    2021-01-29 11:12

    You need something like:

    [a-z]*cat[a-z]*

    I don't know if you have spaces or other special caracters...

提交回复
热议问题