Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
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:
3393
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:
page('',1),$match\n
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 code to the same affix in each line?
(68%)
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 add up to 4 spaces before each line?
(64%)
Check Demo of
Advanced search and replace
Keywords:
add first line to start of each line
add first line
start of each line
add first
first line
first
rst
start
page
each line
add text to the first line
add text to start of each line
replace line start to the first
line start to the first
first add
add text each line
replace text first line
search and replace first