Linux sed regular match delete the entire line

原文内容:
[root@10 tmp]# more test.log
2019-12-01 09:09:02 Failed
2019-12-01 09:12:02 Failed
2019-12-01 09:15:03 Failed
2019-12-01 09:18:02 Failed

Regular matching Failed, delete the entire line (direct replacement text)
[the root tmp @ 107] -i Sed '/ the Failed $ /' D check.log

Guess you like

Origin www.cnblogs.com/picaso/p/11965168.html