Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

747.Advanced search and replace -- How to change the number in each line to specified order in a text file?

User: bruce lee -- 2011-03-25          << 746  748 >>
Hits: 3438
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
how to change the number in each line to specified order in a text file?
Input Sample:
http://www.duPage=39&keyword= 
http://www.duPage=39&keyword= 
http://www.duPage=39&keyword= 


.
Output Sample:
http://www.duPage=1&keyword= 
http://www.duPage=2&keyword= 
http://www.duPage=3&keyword= 


.
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' window 
* set 'search for pattern' to the number you need to replace 
 
* set 'replace with pattern' to: 
 
3. click 'replace', done! 
4. ctrl-s save to file.

Screenshot 1:  Replace_Window


Similar Examples:
How to change columns in each line to specified order in text file? (90%)
How to sort the numbers in each line by the descending order in a text file? (78%)
How to change each line into specified format? (69%)
How to extract multiple lines in specified order from many text files? (69%)
How to remove lines containing specified words in a text file? (68%)
How to search and sum the numbers at specified position in a text file? (68%)
How to count number of each intial letters in all words in text file? (68%)
How to pick up paired lines with specified rules in a text files? (67%)

Check Demo of Advanced search and replace
Keywords:
order  how to change the number  specified  number  each line  ber  num  how to change  change  word  order number  change the number for each  line order  order line  replace in specified line  specified line  number each line  how to change number