Delete duplicate string with PowerShell

Question:

I have got text file:

Here first and last line are simmilar. I have a lot of files that have double lines. I need to delete all dublicate.

Answer:

All these seem really complicated. It is as simple as:

Using actual file names instead of variables:

Source:

Delete duplicate string with PowerShell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply