Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1449.Advanced search and replace -- How to rearrange the words in each line and top of file?

User: Jiang Nan -- 2019-12-27          << 1448  1451 >>
Hits: 2090
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
Hello, how to handle the blank in different ways? Than you. 
Input Sample:
BRANCH 02236  DATE 20190101 
CUSTNO NAME SALARY  
5477161 Chinesename 123 
1617725 first middle last 345
Output Sample:
02236|20190101|5477161|jiangnan|123 
02236|20190101|1617725|first middle  
last|345
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialog 
* set 'replace unit' to 'Line' 
* set 'unit number filter' to  
which mean only replace from the 3rd line on. 
* uncheck 'print unmatched unit', means discard line 1, 2 
* set 'replace with pattern' to: 
 
means take part of words from line1 and line2, and rest  
words from each line start from 3. 
3. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to reverse all the words in each line of a csv file? (76%)
How to delete the first word in each line in a text file? (71%)
How to reverse the order of all the lines in a text file? (68%)
How to remove first number in each line for multiple files? (64%)
How to remove leading spaces and tabs in each line in multiple text files? (64%)
How to reverse the order of characters in each line of text? (64%)
How to remove the first 10 characters of each line in text file? (62%)
How to replace the quoted text with lines from another file? (61%)

Check Demo of Advanced search and replace
Keywords:
3rd  range  blank  unit number filter  number filter  unmatched  unmatch  different  filter  print  top 3 words  different words  how to replace in part  replace in part  each line to replace different  words with number  different number  replace with blank