|
|
| We don't bite newbies here... much | |
| PerlMonks |
Delete duplicate data in fileby darrengan (Sexton) |
| on Nov 21, 2005 at 04:25 UTC ( #510358=perlquestion: print w/ replies, xml ) | Need Help?? |
|
darrengan has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Monks'
How do i open a file and scan the data row by row and delete duplicate row in the file? I have multile files in a folder /temp/ and the files are 051119.temp, 051120.temp, 051121.temp Each file will have the following row format i.e. data_row_051126120432.data data_row_051126120630.data data_row_051126120630.data data_row_051126122305.data data_row_051126122305.data How do i delete data_row_051126120630.data and data_row_051126122305.data as it is duplicate? Cheers and Thanks
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||