Hey Guys,
i have a txt file with more than 1 line, in each line are more than 1 word.
now, i want to delete the whole line, if there is a specified word.
for example:
line1 - peter is a nice guy
line2 - peter is gay
line3 - peter is tall
now i want to delete the line, where "gay" is in and post the others again in the file like this:
line1 - peter is a nice guy
line3 - peter is tall
Can somebody tell me how to do this? I tryed it with lsearch and lreplace but i'm not very skilled and hope you will help me. THANKS!