Deleting Duplicate Lines Using Tagged Expressions
Posted: Tue Jul 03, 2012 4:23 pm
Hello,
I would like to remove duplicate lines from a text file. Thus, if my input file looks like this:
I would like to generate output like this:
Using Google I found a small regular expression. Consequently, I activated POSIX regular expressions and tried to replace
by
Unfortunately, I received the error "Invalid regular expression". I tried a very similar expression in a different Editor and it worked. What am I doing wrong?
Thank your very much in advance,
Adrian
I would like to remove duplicate lines from a text file. Thus, if my input file looks like this:
Code: Select all
line1
row2
row2
row3
line4Code: Select all
line1
row2
row3
line4Code: Select all
^(.*)\n\1 Code: Select all
\1 Thank your very much in advance,
Adrian