How do you delete lines in a file when more than one character needs be compared in a file in different lines?

Published: 14/11/2019
How do you delete lines in a file when more than one character needs be compared in a file in different lines?
Source: UNIX.STACKEXCHANGE.COM

Eg: Content of a file xx.txt is Hi How Are You Doing Its Been Long Time Hope Everything Is Fine So if i need to remove the lines which holds the character 'Doing' and 'Fine'. The output of the file xx.txt must look like Hi Its Been Long Time using a single sed or awk command can this be done?

Read more
Related news
Comment
FACEBOOK