| | |
Script to Remove duplicate lines from a text file.
![]() |
•
•
Join Date: May 2008
Posts: 46
Reputation:
Solved Threads: 2
42. When you know the question you will understand the answer

OK I'm gonna get sued by Douglas Adams' estate now.
I'll even help out,
first you open the file... then you read it... then you use regular expressions to find and remove duplicates, then close the file and open it for writing and write the new text back, then close the file again.
this has been done many many times over... use <insert favourite search engine here> to find a script and modify it.
Hey, he doesn't need to use regular expressions. A hash will do fine.
Chaos
Lost Souls: text based RPG
MUDseek: MUD gaming search
Lost Souls: text based RPG
MUDseek: MUD gaming search
But that would be sensible and prevent unnecessary effort. This is the Internet, mister! We don't hold with that sort of behavior!
Chaos
Lost Souls: text based RPG
MUDseek: MUD gaming search
Lost Souls: text based RPG
MUDseek: MUD gaming search
![]() |
Similar Threads
Other Threads in the Perl Forum
- Previous Thread: Can't seem to find the problem...
- Next Thread: Proper Setup?
Views: 3613 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for Perl





