search string and delete the line

Hi All,

I have a file from Mainframe which has one of the lines with so many words... i tried to fold, format to 80 chararcter.. stil did not work. So i have decided to search for a string in that line Ex.FLIGHT PLAN and once if it is found i want to delete the entire line.

Please help
Raghava

  1. Single pattern
    grep -v "FLIGHT PLAN" file_name

above command will only print the lines which does not have the given pattern ..

-v -> inverts match.

  1. Multiple pattern
    grep -v -e "pattern1" -e "pattern2" file_name

If a line does not contains any of the given pattern then it will
show that line. This may also help you.

sed '/Ex.FLIGHT PLAN/d' filename > newfilename