in reply to Remove Duplicate Lines
If this is a one time fix, you can use the unix commands 'sort' and 'uniq', like so:
tstock
'sort' sorts the entries in db.txt, uniq then cuts out duplicates and the the '>' redirects the output to a new file name instead of the screen (STDOUT).sort db.txt | uniq > newfile.db
tstock
In Section
Seekers of Perl Wisdom