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
In reply to Re: Deleting a string which is repeating(more than once) in a file.
by ansh batra
in thread Deleting a string which is repeating(more than once) in a file.
by uday_sagar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |