Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1005.Text generator -- How to duplicate every line 3 times with increasing sequence id?

User: editor -- 2012-09-16          << 1004  1006 >>
Hits: 1590
Type: Text generator   
Search all Text generator examples
Description:
How to duplicate every line 3 times with increasing sequence id?
Input Sample:
Tommy
Lucky
Frank
Philip
Output Sample:
name=Tommy, item_id=1
name=Tommy, item_id=2
name=Tommy, item_id=3
name=Lucky, item_id=1
name=Lucky, item_id=2
name=Lucky, item_id=3
name=Frank, item_id=1
name=Frank, item_id=2
name=Frank, item_id=3
name=Philip, item_id=1
name=Philip, item_id=2
name=Philip, item_id=3
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file with all names
2. ctrl-h open 'replace' dialogue
* set 'replace unit' to 'Line'
* set 'replace with pattern' to:

3. click 'replace', done.
4. ctrl-s save to file.

Screenshot 1:  Replace_Window


Similar Examples:
How to duplicate each line 5 times in a text file? (62%)
How to replace specified word with increasing binary sequence? (59%)
How to replace a word/string with increasing sequence number in a text file? (58%)
How to generate a list of web pages with 2 numbers increased in sequence? (56%)
How to generate a list of strings with sequence id decreased? (56%)
How to generate multiple line text with increasing HEX number? (56%)
How to repeat each line multiple times with number increased/decreased? (55%)
How to batch rename many directories all at once by adding a sequence number ahead? (55%)

Check Demo of Text generator
Keywords:
duplicate every line  increasing sequence  sequence id  increasing  times  increas  duplicate  duplicat  dupl  names  duplicate line generator  text duplicate generator  duplicate text generator  duplicate 3 times  increasing id  text sequence generator  sequence text generator  text generator all