in reply to Deleting a string which is repeating(more than once) in a file.
Iterate over the lines of file
compare the current line with $temp
if current line is Not same as $temp then print it to the output file.
update the $temp to current line
I hope now you can apply some perl code
|
|---|