I need to remove the unique lines and keep the duplicates in my text file(read the articles written to remove duplicate lines but I want to do the opposite). Is there any way I could do that using expressions or textfx? 
E.g:  

```
file1.txt
hello
world
hello

```

After operation, output should be   

```
hello
hello

```

Thanks in advance