Can someone please hekp me develope a script that will read from a .txt file ( ex: songs.txt ) and strip out all the songs listed in the file minus the duplicates ... as there will be 2 or 3 of each one listed in the .txt file ... example
did it feel like love
did it feel like love
did it feel like love
did it feel like love
time for loving
time for loving
time for loving
time for loving
when i grow up
when i grow up
when i grow up
ETC ETC I am not sure on how many copies of each title will appear in the file or home many different song titles there will be in total but what I want to do ( learn ) is take only one copy of each song name make sure its not a duplicate and then write one copy of each file to a new text file ...
Can this be done ?
Thanks In Advance