Search files for an entry and remove the duplicates

Hello-

I am trying to search a text file for a string and remove the duplicates in the file. I dont see a direct way to do this. I know we can write some scripts and execute it. But just wondering if there is a way that we can achieve this?

 

Thanks,

 

Hi

There isn’t any built in functionality for this, scripting would be the only way.

 Thank you. I am writing script for this.