I have a text file with several lines. In every line there appears a certain string either once or several times. I want to extract all lines where the string appears more than once and write these lines to a separate text file. I have a text file with several lines. In every