in reply to Re^3: how to change this code into perl
in thread how to change this code into perl
If you need to print all the lines that are duplicates, then it is slightly more complicated, because you need to keep track of recent history. And then, yes, it is probably better to write a real script.
Another way is to use a hash to keep track of everything in memory.
|
|---|