Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1238.Advanced search and replace -- How to add sequence number for duplicated line?

User: Soly -- 2014-08-25          << 1237  1239 >>
Hits: 921
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to rename duplicated line?
Input Sample:
a
b
c
a
b
c
a
b
c
Output Sample:
a
b
c
a(1)
b(1)
c(1)
a(2)
b(2)
c(2)
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace' dialogue
* set 'replace unit' to 'Line'
* set 'replace with pattern' to:

* set 'if' to:

* click 'advanced' tab:
* set 'run following at the beginning of replace' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to add a specified value to the sequence number in each line? (66%)
How to add sequence number for each non-blank line of a text file? (66%)
How to add a line number at the beginning of each line? (62%)
How to add some number to the specific column in csv file? (59%)
How to add in different sentences after the different lines? (58%)
How to remove the sequence number before each line of text file? (58%)
How to add a space at the specific location of each line? (58%)
How to add a space after the 15 character of each line? (58%)

Check Demo of Advanced search and replace
Keywords:
duplicated  add sequence number  add sequence  sequence number  duplicate  duplicat  dupl  values  clear  sequence  search file with text pattern and rename  text search and rename  search and replace add sequence  replace text rename  sequence number text file  rename replace text  replace text sequence number  replace text to sequence number