| User: editor -- 2010-08-21 << 593 595 >> |
| Hits: 371 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to find the maximum number in each line that contains 3 numbers? |
| Input Sample: |
1 2 9 2 3 8 4 5 1 6 7 2 |
| Output Sample: |
max(1,2,9)=9 max(2,3,8)=8 max(4,5,1)=5 max(6,7,2)=7
|
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
|
1. ctrl-o open source text file 2. ctrl-h open 'replace' window * set 'replace unit' to 'Line' * in 'search for pattern', enter: * in 'replace with pattern', enter: 3. click 'replace', done! |
Screenshot 1: Replace_Window
|
|
Similar Examples: |
How to replace all numbers 93 in every line that contains gas? (64%) How to find out the maximum value in each line for multiple csv file? (63%) How to add a number in each line indicating number of words in this line? (61%) How to add a '*' at the beginning of each line that contains keyword "PASS"? (60%) How to find all lines in file A that contain words in file B? (57%) How to count the number of english words that has specified number of chars? (56%) How to calculate the minimum and maximum value in each line of text? (56%) How to sort all the numbers in each line randomly? (55%)
|
|
Check Demo of Advanced search and replace |
| Keywords: |
| maximum 123 max find numbers fin contain each line number ber find and replace maximum line numbers find text find and replace find replace find and text to numbers unit number |