vi editor

Hi,

I am using vi editor, can anybody tell how to delete a line which is matching with a search pattern like search and replace(instead of replace, delete that line)
%s/123/xyz/g - need equalent command for delete

search for a string, if found delete that line from editor

thanks
krishna

try

:d,$s/search_string/g

   :d,$s /123/g 

*it checks the text 123 then the :d value deletes the line 123..
Hope this helps.

to search for any string use "/". Then if you wanna delete the line double click "d".
I hope that helps