Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

891.Advanced search and replace -- How to add first line to the start of each line?

User: vx -- 2011-11-24          << 890  892 >>
Hits: 223
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
how to add first line to start of each line
Input Sample:
123
4
5
6
Output Sample:
123,123
123,4
123,5
123,6
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' dialog
* set 'replace unit' to 'Line'
* set 'replace with pattern' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to add a semicolon at the end of each line? (69%)
How to add a <BR> at the end of each line? (68%)
How to extract the first 10 and last 10 characters from each line? (67%)
How to add a line number at the beginning of each line? (67%)
How to batch add prefix and surfix for each line? (65%)
How to add a space after the 15 character of each line? (65%)
How to extract text from 'start' to 'end' in each line? (64%)
How to add a space at the specific location of each line? (63%)

Check Demo of Advanced search and replace
Keywords:
add first line to start of each line  start of each line  first line  first  rst  start  each line  page  how to add  add  replace line start to the first  add text to start of each line  line start to the first  first add  replace text first line  add text each line  first replace line  replace first line