Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1093.Advanced search and replace -- How to replace a words with the previous word in the same column?

User: shan feng -- 2013-07-02          << 1092  1094 >>
Hits: 1274
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to replace a words with the previous word in the same column?
Input Sample:
1 2 3
a 5 6
Output Sample:
1 2 3
1 5 6
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume you want to find the first word in line 2, and replace it with the first word in line 1, and all words are separated by space.

1. ctrl-o open text file
2. ctrl-h open 'replace' dialogue
* set 'replace unit' to 'Line'
* set 'unit number filter' to: 
* set 'replace with pattern' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to replace specific words with its previous words in the same column? (89%)
How to replace the words with its nearest different words in the same column?
(77%)
How to replace the all word "test" with the first word in same line? (73%)
How to replace a word with a list of words repeatly in a text file? (65%)
How to calculate the sum of the numbers in the same column? (64%)
How to replace each xxx with the first word in the same line in text file? (63%)
How to calculate the average of the numbers in the same column? (61%)
How to search and replace words in specified column in csv file? (59%)

Check Demo of Advanced search and replace
Keywords:
previous  same column  separate  find  same  first word  unit number filter  number filter  space  filter  find 2 words  words are the same  replace with previous line  replace word first column  find word  find a word  replace same word  replace the same word