Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

110.Text merge -- How to merge other columns' data base on the value of the first column?

User: editor -- 2008-05-15          << 109  111 >>
Hits: 541
Type: Text merge   
Search all Text merge examples
Description:
How to merge other columns' data base on the value of the first column?
Input Sample:
Tommy 123 456
Tommy 456 789
Mary 987 654
Susan 01 23
Susan 45 67
Susan 89 10
Output Sample:
Tommy 123 456 456 789
Mary 987 654
Susan 01 23 45 67 89 10
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
This is a complicate case, just need to follow for beginner:
1.press ctrl-o to open source file
2.press ctrl-h to open replace dialog, set as follows:
In 'Replace' page:
* Set 'Replace Unit' to 'Line' 
* Fill 'Search for pattern':    

* Fill 'Replace with pattern':

In 'Advanced' page:
set 'run following for each matched unit' to:

3. click 'Replace' Button, ok 
Download Script:  scripts/110.rst.zip

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to merge the data of second column base on value of first column? (77%)
How to merge two text file base on the value of first column and do sort? (72%)
How to extract the second column from a database text file? (57%)
How to append the second columns of file A and B if first columns are identical? (56%)
How to summrize the number of second column grouping by the first column? (56%)
How to generate EMA columns and related STD of close value from stock data? (55%)
How to merge every 3 lines from file A and every 1 line from file B? (54%)
How to merge more columns into one column in multiple csv files? (53%)

Check Demo of Text merge
Keywords:
text merge  merg  merge  data base  pages  comp  else  columns  case  data  merge base column  merge base  first columns  column merge  merge column  merge replace  value column  replace with data