Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1260.Text data calculation -- How to divide by 10 for all numbers not less than 40?

User: Dilip -- 2014-10-12          << 1259  1261 >>
Hits: 1192
Type: Text data calculation   
Search all Text data calculation examples
Description:
I have this specification/pattern.

T 5 cm
P 50 cm T 10 cm
T 50 cm P 10 cm
T 25 cm P 40 cm
P 10 cm

But anything above/greater than 40 is actually in mm. So I want to divide
anything greater than 40 by 10 and give actual length in cm
Input Sample:
T 5 cm
P 50 cm T 10 cm
T 50 cm P 10 cm
T 25 cm P 40 cm
P 10 cm
Output Sample:
T 5 cm
P 5 cm T 10 cm
T 5 cm P 10 cm
T 25 cm P 4 cm
P 10 cm
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' dialogue
* set 'search for pattern' to 
* set 'replace with pattern' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to distribute 6 numbers into multiple lines randomly? (57%)
How to extract/parse all lines with number greater than 40? (56%)
How to multiply by 1.5 for all numbers with xr suffix? (55%)
How to calculate the summary of all numbers in multiple files? (54%)
How to sort all the numbers in each line randomly? (53%)
How to extract all numbers that are greater than 60 in a text file? (53%)
How to replace all numbers 93 in every line that contains gas? (53%)
How to change the location of all numbers randomly? (52%)

Check Demo of Text data calculation
Keywords:
anything  divide  greater  div  give  less  length  specific  calculation  calcu  actual search replace  divide numbers  length replace  calculation in text file  and replace numbers in text file  search numbers  search data  with numbers