Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
RSS: Replace Pioneer Examples
1287.Text data calculation -- How to multiply by 1.5 for all numbers with xr suffix?
User:
karlhitori -- 2015-03-18
<< 1286
1288 >>
Hits:
2606
Type:
Text data calculation
Search all
Text data calculation
examples
Description:
how to multiply all numbers by 1.5 in a text file with only 'xr' suffix attached to them, for example :
Input Sample:
jaksdwbnlfaw = 40xr
sjdjawijdkjw = 20xr
ldkgrli = 10xr
skjhfwfjek = 25ph
kdlfkilej = 35ph
daksdnwjbdy = 2xr
Output Sample:
jaksdwbnlfaw = 60xr
sjdjawijdkjw = 30xr
ldkgrli = 15xr
skjhfwfjek = 25ph
kdlfkilej = 35ph
daksdnwjbdy = 3xr
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:
(\d+)xr
* set 'replace wit pattern' to:
calc($1*1.5)xr
3. click 'replace', done.
Screenshot 1: Replace_Window
Similar Examples:
How to multiply every number by 1000 in a text file?
(61%)
How to calculate the summary of all numbers in multiple files?
(58%)
How to multiply all money amount in a text file by 9?
(58%)
How to calculate the sum of the numbers in the same column?
(57%)
How to divide by 10 for all numbers not less than 40?
(55%)
How to skip multiples of 100 lines and extract the last 1-100 lines?
(53%)
How to calculate the average of all numbers that preceded by dollar sign?
(53%)
How to multiply the first column with the rest of columns in one file?
(53%)
Check Demo of
Text data calculation
Keywords:
multiply
fix
calculation
calcu
calculat
all numbers
example
examp
data
numbers
multiply all numbers text file
multiply all numbers in file
multiply all numbers in a file
multiply all numbers in a text file
multiply all numbers in text file
multiply numbers
multiply numbers in text file
how to multiply numbers