How to find & mark duplicate lines?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
cbv
Posts: 4
Joined: Thu Feb 05, 2004 11:59 pm

How to find & mark duplicate lines?

Post by cbv »

Hi! :)
Is there a way to find & mark duplicate lines in a document?

I know there is a Sort (F9) command. However, I don't want to delete the lines.
Chris
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

You could try fooling around with something like this in WildEdit using regular expression:
Find \n(.+)\n(.*\n)?\1
Replace \n$1\n$2\nX$1
Where X marks the line.
See the post by BenjiSmith. Pls note that I have not tested this my self. HTH
Then I open up and see
the person fumbling here is me
a different way to be
cbv
Posts: 4
Joined: Thu Feb 05, 2004 11:59 pm

Post by cbv »

s_reynisson wrote:You could try fooling around with something like this in WildEdit using regular expression:
Find \n(.+)\n(.*\n)?\1
Replace \n$1\n$2\nX$1
Where X marks the line.
See the post by BenjiSmith. Pls note that I have not tested this my self. HTH
Is there a way to do it in TextPad?
Post Reply