Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

84.Text merge -- How to merge the data of second column base on value of first column?

User: editor -- 2008-05-12          << 83  85 >>
Hits: 3909
Type: Text merge   
Search all Text merge examples
Description:
How to merge the data of second column base on value of first column?
Input Sample:
2 X  
2 Y  
3 O  
3 P  
3 Q  
5 4  
6 5  
6 7  
Output Sample:
2 X/Y  
3 O/P/Q  
5 4  
6 5/7 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
This is complicate case, the beginner only need to follow steps below, advanced user can learn how it works: 
1. ctrl-o open source file 
2. ctrl-h open Replace dialog 
In 'Replace' Page: 
1) set Replace Unit=Line 
2) set 'search for pattern' 
 
3) set 'replace with pattern' 
 
In 'Advance' Page: 
set 'Run following for each matched unit' 
 
3. Click 'Replace', OK! 
 
Download Script:  scripts/84.rst.zip

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to merge other columns' data base on the value of the first column? (79%)
How to merge other columns one by one into the first column? (70%)
How to merge two text file base on the value of first column and do sort? (69%)
How to summrize the number of second column grouping by the first column? (69%)
How to calculate one column base on value of another column? (68%)
How to merge remaining columns into the first column? (66%)
How to extract the second column from a database text file? (65%)
How to append the second columns of file A and B if first columns are identical? (63%)

Check Demo of Text merge
Keywords:
second column  pages  comp  user  text merge  merge  merg  mer  else  first column  merge base column  merge base  merge second column  column merge  merge column  data base  only first  merge replace