Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1300.Advanced search and replace -- How to merge 4 lines to one according to given rules?

User: dante liujie -- 2015-04-24          << 1299  1301 >>
Hits: 2626
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
I got files with 4 head line, in following style: 
 
Line 1: Title 
Line 2: sub title 
Line 3: Date: 2015-04-06 16:00 
Line 4: link string 
 
I want to change it to one line head line style: 
2015-04-06 16:00 Title 
 
Thanks a lot
Input Sample:
This is possible 
  if you try 
  Date: 2015-04-06 16:00 
  Link: http://xxxx.com/xxx.htm
Output Sample:
2015-04-06 16:00 This is posible
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" menu 
2. drag multiple files to "Batch Runner" window 
3. click "Fast Replace" button 
4. click "add" to add new rules: 
* set "search" to: 
 
* set "replace" to: 
 
* click "ok" 
5. make sure "reg exp" and "cross line" option is checked 
6. click "start", done

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to rename files according to a given mapping list? (64%)
How to rename files according to a given mapping list? (64%)
How to merge odd lines from file1 and even lines from file2? (59%)
How to merge many files into one file? (57%)
How to random remove x lines from a line range in text file? (57%)
How to merge more columns into one column in multiple csv files? (57%)
How to generate a list of number base on given formula such as 3n+1? (57%)
How to join groups of lines together in a text file according to user defined  rule? (57%)

Check Demo of Advanced search and replace
Keywords:
given  give  merge  merg  mer  acc  sub  rules  link  title  add head  merge multiple files  merge multiple  merge lines  merge n lines  merge 3 lines to 1 line  change lines in multiple files 2  replace string in multiple files